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_wavefloat
Wavelength where to normalize the polynomials.
- Orderint
Polynomial order. Returns order+1 templates.
- templ
- Returns
- ptempdict
Dictionary of polynomial-component templates, with additional attributes:
ref_wave = wavelength where polynomials normalized