split_poly_template

grizli.utils.split_poly_template(templ, ref_wave=10000.0, order=3)[source]

Multiply a single template by polynomial bases to effectively generate a polynomial multiplicative correction that can be fit with linear least squares.

Parameters:
templ : SpectrumTemplate

Template to split.

ref_wave : float

Wavelength where to normalize the polynomials.

Order : int

Polynomial order. Returns order+1 templates.

Returns:
ptemp : dict

Dictionary of polynomial-component templates, with additional attributes:

ref_wave = wavelength where polynomials normalized