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:
- spectrum
Spectrum1D
Spectrum to fit
- cutofffloat
Mask channels greater than
cuttoff
-sigma away from the peak flux.
- spectrum
- Returns:
- mask
ndarray
Mask that excludes channels greater than
cuttoff
-sigma away from the peak flux.
- mask