scippneutron.conversion.tof.dspacing_from_tof#
- scippneutron.conversion.tof.dspacing_from_tof(*, tof, Ltotal, two_theta)[source]#
Compute the d-spacing from time-of-flight.
The result is the inter-planar lattice spacing
\[d = \frac{h t}{m_n L_\mathsf{total}\; 2 \sin \theta}\]Where \(m_n\) is the neutron mass and \(h\) the Planck constant.
- Parameters:
- Returns:
Variable
– Inter-planar lattice spacing \(d\). Has unit ångström.
See also
scippneutron.conversions.beamline
Definitions of
two_theta
andLtotal
.