scippneutron.conversion.tof.dspacing_from_wavelength#
- scippneutron.conversion.tof.dspacing_from_wavelength(*, wavelength, two_theta)[source]#
Compute the d-spacing from wavelength.
The result is the inter-planar lattice spacing
\[d = \frac{\lambda}{2 \sin \theta}\]- Parameters:
- Returns:
Variable
– Inter-planar lattice spacing \(d\). Has unit ångström.
See also
scippneutron.conversions.beamline
Definition of
two_theta
.