scippneutron.tof.unwrap.time_of_flight_data#
- scippneutron.tof.unwrap.time_of_flight_data(da, tof)[source]#
Add the time-of-flight coordinate to the data.
- Parameters:
da (
tof.unwrap.RawData
(scipp.DataArray
)) – Raw detector data loaded from a NeXus file, e.g., NXdetector containing NXevent_data.tof (
tof.unwrap.TofCoord
(scipp.Variable
)) – Time-of-flight coordinate.
- Return type: