scippneutron.conversion.tof.wavelength_from_tof#

scippneutron.conversion.tof.wavelength_from_tof(*, tof, Ltotal)#

Compute the wavelength from time-of-flight.

The result is the de Broglie wavelength

\[\lambda = \frac{h t}{m_n L_\mathsf{total}}\]

Where \(m_n\) is the neutron mass and \(h\) the Planck constant.

Parameters:
  • tof (Variable) – Time-of-flight \(t\).

  • Ltotal (Variable) – Total beam length.

Returns:

Variable – Wavelength \(\lambda\). Has unit ångström.