ess.diffraction.powder.conversions.dspacing_from_diff_calibration
ess.diffraction.powder.conversions.dspacing_from_diff_calibration#
- ess.diffraction.powder.conversions.dspacing_from_diff_calibration(tof, tzero, difa, difc, _tag_positions_consumed)#
Compute d-spacing from calibration parameters.
d-spacing is the positive solution of
\[\mathsf{tof} = \mathsf{DIFA} * d^2 + \mathsf{DIFC} * d + t_0\]This function can be used with
scipp.transform_coords()
.See also
ess.diffraction.conversions.to_dspacing_with_calibration
- Return type