get_spectrum_mask#

aesop.get_spectrum_mask(spectrum, cutoff=1.5, plot=False)[source]#

Fit the raw, pre-normalized spectrum’s blaze function with a Gaussian. Use a

Parameters:
spectrumSpectrum1D

Spectrum to fit

cutofffloat

Mask channels greater than cuttoff-sigma away from the peak flux.

Returns:
maskndarray

Mask that excludes channels greater than cuttoff-sigma away from the peak flux.