scippneutron.tof.unwrap.unwrapped_time_of_arrival#
- scippneutron.tof.unwrap.unwrapped_time_of_arrival(da, offset, period)[source]#
Compute the unwrapped time of arrival of the neutron at the detector. For event data, this is essentially
event_time_offset + event_time_zero
.- Parameters:
da (
tof.unwrap.RawData
(scipp.DataArray
)) – Raw detector data loaded from a NeXus file, e.g., NXdetector containing NXevent_data.offset (
tof.unwrap.PulseStrideOffset
(int
)) – Integer offset of the first pulse in the stride (typically zero unless we are using pulse-skipping and the events do not begin with the first pulse in the stride).period (
tof.unwrap.PulsePeriod
(scipp.Variable
)) – Period of the source pulses, i.e., time between consecutive pulse starts.
- Return type: