scippneutron.conversion.tof.dspacing_from_wavelength#

scippneutron.conversion.tof.dspacing_from_wavelength(*, wavelength, two_theta)#

Compute the d-spacing from wavelength.

The result is the inter-planar lattice spacing

\[d = \frac{\lambda}{2 \sin \theta}\]
Parameters:
  • wavelength (Variable) – De Broglie wavelength \(\lambda\).

  • two_theta (Variable) – Scattering angle \(2 \theta\).

Returns:

Variable – Inter-planar lattice spacing \(d\). Has unit ångström.

See also

scippneutron.conversions.beamline

Definition of two_theta.