ess.reduce.time_of_flight.eto_to_tof.detector_time_of_arrival_data#
- ess.reduce.time_of_flight.eto_to_tof.detector_time_of_arrival_data(detector_data, lookup, ltotal, pulse_stride_offset)[source]#
Convert the time-of-flight data to time-of-arrival data using a lookup table. The output data will have a time-of-arrival coordinate. The time-of-arrival is the time since the neutron was emitted from the source. It is basically equal to event_time_offset + pulse_index * pulse_period.
- Parameters:
da – Raw detector data loaded from a NeXus file, e.g., NXdetector containing NXevent_data.
lookup (
time_of_flight.types.TimeOfFlightLookupTable(scipp.DataArray)) – 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:
ToaDetector[TypeVar(RunType)]