ess.powder.conversion.to_dspacing_with_calibration#
- ess.powder.conversion.to_dspacing_with_calibration(data, calibration)[source]#
Transform coordinates to d-spacing from calibration parameters.
Computes d-spacing from time-of-flight stored in data.
Attention
data may have a wavelength coordinate and dimension, but those are discarded. Only the stored time-of-flight is used, that is, any modifications to the wavelength coordinate after it was computed from time-of-flight are lost.
- Raises:
KeyError – If data does not contain a ‘tof’ coordinate.
- Parameters:
- Returns:
DataArray
– A DataArray with the same data as the input and a ‘dspacing’ coordinate.
See also
ess.powder.conversions.dspacing_from_diff_calibration