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.