NormalizeParts

class starkit.base.operations.spectrograph.NormalizeParts(observed, parts, npol)[source]

Bases: SpectrographOperationModel

Normalize a model spectrum to an observed one in multiple parts

Here, different parts could, e.g., be different echelle orders or different chips for GMOS spectra.

Parameters:
observedSpectrum1D object

The observed spectrum to which the model should be matched

partslist of slices, index arrays, or boolean arrays

Different parts of the observed spectrum which should be normalized separately.

npollist of int

Polynomial degrees for the different parts

Attributes Summary

requires_observed_spectrum

Methods Summary

evaluate(wavelength, flux)

Evaluate the model on some input variables.

spectrum_1d_getitem(observed, part)

Attributes Documentation

requires_observed_spectrum = True

Methods Documentation

evaluate(wavelength, flux)[source]

Evaluate the model on some input variables.

static spectrum_1d_getitem(observed, part)[source]