ess.reduce.time_of_flight.eto_to_tof.detector_time_of_flight_data#

ess.reduce.time_of_flight.eto_to_tof.detector_time_of_flight_data(detector_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 detector data loaded from a NeXus file, e.g., NXdetector containing NXevent_data.

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

  • ltotal (DetectorLtotal[TypeVar(RunType)]) – Total length of the flight path from the source to the detector.

  • 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:

TofDetector[TypeVar(RunType)]