scippneutron.tof.unwrap#
This module provides functionality for unwrapping raw frames of neutron time-of-flight data.
The module handles standard unwrapping, unwrapping in pulse-skipping mode, and unwrapping for WFM instruments, as well as combinations of the latter two. The functions defined here are meant to be used as providers for a Sciline pipeline. See https://scipp.github.io/sciline/ on how to use Sciline.
Module Attributes
Result of passing the source pulse through the chopper cascade. |
|
Choppers used to define the frame parameters. |
|
Result of passing the source pulse through the chopper cascade. |
|
Result of passing the source pulse through the chopper cascade to the detector. |
|
Version of the frame at the detector with subframes that do not overlap. |
|
The computed frame boundaries, used to unwrap the raw timestamps. |
|
Frame used to compute the time-of-flight origin. |
|
The period of a frame, a (small) integer multiple of the source period. |
|
Time offsets wrapped around at the frame period. |
|
Total distance between the source and the detector(s). |
|
Offset from the start of the frame in pulse-skipping mode, multiple of pulse period. |
|
Period of the source pulses, i.e., time between consecutive pulse starts. |
|
Stride of used pulses. |
|
Time offsets wrapped at the pulse period, typically NXevent_data/event_time_offset. |
|
Raw detector data loaded from a NeXus file, e.g., NXdetector containing NXevent_data. |
|
Name of the chopper defining the source location and time-of-flight time origin. |
|
Chopper defining the source location and time-of-flight time origin. |
|
Location of the sample along the incident beam. |
|
Time range of the source pulse, used for computing frame bounds. |
|
Wavelength range of the source pulse, used for computing frame bounds. |
|
Time of the start of the most recent pulse, typically NXevent_data/event_time_zero. |
|
Detector data with unwrapped time offset and pulse time coordinates. |
|
Distance from the source to the position the time-of-flight origin. |
|
Time of the time-of-flight origin for each subframe. |
|
Detector data with time-of-flight and time zero coordinates. |
|
Unwrapped time offset relative to the pulse time. |
|
Positive delta to be added to the input time offsets to unwrap them. |
Functions
Return all the chopper frames. |
|
|
Return the frame at the detector. |
|
|
|
|
|
Without pulse-skipping, this is an identity function. |
Return the time offset wrapped around at the frame period. |
|
|
Check for time overlap between subframes. |
|
Offset of the input time offsets from the start of the frame emitting the neutron. |
|
Return the offset of a pulse within a frame. |
In NXevent_data, event_time_offset is the time offset since event_time_zero, which is the start of the most recent pulse. |
|
|
Return the chopper defining the source location and time-of-flight time origin. |
Compute the time-of-flight origin from a source chopper. |
|
Return the providers for computing the time-of-flight origin via the chopper cascade. |
|
|
Compute the time-of-flight origin in the WFM case. |
Return the providers computing the time-of-flight and time-zero coordinates. |
|
|
Extract the time offset coord of the unwrapped input data. |
|
In NXevent_data, event_time_zero is the start of the most recent pulse. |
|
Return the input data with 'tof', 'time_zero', and corrected 'Ltotal' coordinates. |
|
Return the input data with unwrapped time offset and pulse time. |
|
Return the list of providers for unwrapping frames. |
Classes
|
The origin of the time-of-flight, time since pulse time and distance from source. |