slice_spectrum#

aesop.slice_spectrum(spectrum, min_wavelength, max_wavelength, norm=None)[source]#

Return a slice of a spectrum on a smaller wavelength range.

Parameters:
spectrumSpectrum1D

Spectrum to slice.

min_wavelengthQuantity

Minimum wavelength to include in new slice

max_wavelengthQuantity

Maximum wavelength to include in new slice

normfloat

Normalize the new slice fluxes by norm divided by the maximum flux of the new slice.

Returns:
sliced_spectrumSpectrum1D