scippneutron.tof.unwrap.unwrap_data#
- scippneutron.tof.unwrap.unwrap_data(da, delta)[source]#
Return the input data with unwrapped time offset and pulse time.
The time offset is the time since the start of the frame emitting the neutron. The pulse time is the time of the pulse that emitted the neutron.
- Parameters:
da (
tof.unwrap.RawData
(scipp.DataArray
)) – The input data.delta (
tof.unwrap.DeltaFromWrapped
(scipp.Variable
)) – The positive delta that needs to be added to the input time offsets to unwrap them. The same delta is also subtracted from the input time zero to obtain the pulse time.
- Return type: