ess.reduce.time_of_flight.eto_to_tof.monitor_time_of_flight_data#

ess.reduce.time_of_flight.eto_to_tof.monitor_time_of_flight_data(monitor_data, lookup, ltotal, pulse_stride_offset)[source]#

Convert the time-of-arrival data to time-of-flight data using a lookup table. The output data will have a time-of-flight coordinate.

Parameters:
  • da – Raw monitor data loaded from a NeXus file, e.g., NXmonitor containing NXevent_data.

  • lookup (TimeOfFlightLookupTable) – Lookup table giving time-of-flight as a function of distance and time of arrival.

  • ltotal (MonitorLtotal[TypeVar(RunType), TypeVar(MonitorType)]) – Total length of the flight path from the source to the monitor.

  • pulse_stride_offset (time_of_flight.types.PulseStrideOffset (types.int | None)) – When pulse-skipping, the offset of the first pulse in the stride. This is typically zero but can be a small integer < pulse_stride.

Return type:

TofMonitor[TypeVar(RunType), TypeVar(MonitorType)]