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.

__init__(coefficients)[source]#

Methods

__init__(coefficients)

d_to_tof_transformer()

Return a function to convert d-spacing to ToF.

get(k[,d])

items()

keys()

to_cif_format()

Convert to a data array that can be saved to CIF.

to_cif_units()

Convert to the units used in CIF pd_calib_d_to_tof.

values()

d_to_tof_transformer()[source]#

Return a function to convert d-spacing to ToF.

Return type:

Callable[[Variable], Variable]

items()[source]#
Return type:

ItemsView[int, Variable]

keys()[source]#
Return type:

KeysView[int]

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:

DataArray

to_cif_units()[source]#

Convert to the units used in CIF pd_calib_d_to_tof.

Return type:

OutputCalibrationData