ess.nmx.scaling.polyval_wavelength#

ess.nmx.scaling.polyval_wavelength(wavelength, *, out_unit, **kwargs)[source]#

Polynomial helper for fitting.

The coefficients are adjusted to make the fitting result have out_unit as unit.

Parameters:
  • wavelength (Variable) – The wavelength coordinate.

  • out_unit (str) – The unit of the output.

  • **kwargs – The polynomial coefficients.

Returns:

DataArray – The polynomial calculated at the wavelength.