Expand description
Time-of-flight to energy conversion for imaging data.
VENUS beamline data is recorded in time-of-flight bins. This module converts TOF bin edges/centers to neutron energy using E = ½·m_n·(L/t)².
The core conversion functions live in nereids_core::constants; this module
provides the imaging-specific wrappers for working with TOF bin arrays and
spectra aligned to energy grids.
Structs§
- Beamline
Params - VENUS beamline parameters for TOF-to-energy conversion.
Functions§
- linspace_
tof_ edges - Generate linearly-spaced TOF bin edges.
- tof_
edges_ to_ energy - Convert an array of TOF bin edges (μs) to energy bin edges (eV).
- tof_
edges_ to_ energy_ centers - Convert TOF bin edges to energy bin centers.