ess.powder.calibration.OutputCalibrationData#
- class ess.powder.calibration.OutputCalibrationData(coefficients)[source]#
Calibration data for output ToF data.
Only one value is stored per coefficient. This means that individual detector pixels are not resolved but merged into average quantities.
This is a mapping \(M\) from powers \(p\) to coefficients \(c\) according to .. math:
t = \sum_{(p, c) \in M}\, c d^p
where \(d\) is d-spacing and \(t\) is time-of-flight.
Methods
__init__
(coefficients)Return a function to convert d-spacing to ToF.
get
(k[,d])items
()keys
()Convert to a data array that can be saved to CIF.
Convert to the units used in CIF pd_calib_d_to_tof.
values
()- to_cif_format()[source]#
Convert to a data array that can be saved to CIF.
The return value can be passed to
scippneutron.io.cif.CIF.with_powder_calibration()
.- Return type: