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 (
time_of_flight.types.TimeOfFlightLookupTable
(scipp.DataArray
)) – Lookup table giving time-of-flight as a function of distance and time of arrival.ltotal (
MonitorLtotal
[TypeVar
(RunType
,nexus.types.BackgroundRun
(int
),nexus.types.EmptyBeamRun
(int
),nexus.types.SampleRun
(int
),TransmissionRun
[nexus.types.SampleRun
(int
)],TransmissionRun
[nexus.types.BackgroundRun
(int
)],nexus.types.VanadiumRun
(int
)),TypeVar
(MonitorType
,nexus.types.Monitor1
(int
),nexus.types.Monitor2
(int
),nexus.types.Monitor3
(int
),nexus.types.Monitor4
(int
),nexus.types.Monitor5
(int
),nexus.types.Monitor6
(int
),nexus.types.IncidentMonitor
(int
),nexus.types.TransmissionMonitor
(int
),nexus.types.FrameMonitor
(int
),nexus.types.FrameMonitor
(int
),nexus.types.FrameMonitor
(int
),nexus.types.FrameMonitor
(int
),nexus.types.CaveMonitor
(int
))]) – 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:
MonitorTofData
[TypeVar
(RunType
,nexus.types.BackgroundRun
(int
),nexus.types.EmptyBeamRun
(int
),nexus.types.SampleRun
(int
),TransmissionRun
[nexus.types.SampleRun
(int
)],TransmissionRun
[nexus.types.BackgroundRun
(int
)],nexus.types.VanadiumRun
(int
)),TypeVar
(MonitorType
,nexus.types.Monitor1
(int
),nexus.types.Monitor2
(int
),nexus.types.Monitor3
(int
),nexus.types.Monitor4
(int
),nexus.types.Monitor5
(int
),nexus.types.Monitor6
(int
),nexus.types.IncidentMonitor
(int
),nexus.types.TransmissionMonitor
(int
),nexus.types.FrameMonitor
(int
),nexus.types.FrameMonitor
(int
),nexus.types.FrameMonitor
(int
),nexus.types.FrameMonitor
(int
),nexus.types.CaveMonitor
(int
))]