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
- Parameters
tof (scipp._scipp.core.Variable) –
tzero (scipp._scipp.core.Variable) –
difa (scipp._scipp.core.Variable) –
difc (scipp._scipp.core.Variable) –
_tag_positions_consumed (scipp._scipp.core.Variable) –