spectral_slab¶
- specutils.manipulation.spectral_slab(spectrum, lower, upper)[source]¶
Extract a slab from the input
Spectrumdefined by the lower and upper bounds defined by theregioninstance. The extracted region will be returned as a newSpectrum.- Parameters:
- spectrum: `~specutils.Spectrum`
The spectrum object from which the region will be extracted.
- lower, upper: `~astropy.units.Quantity`
The lower and upper bounds of the region to extract from the original spectrum.
- Returns:
Notes
This is for now just a proxy for function
extract_region, to ease the transition from spectral-cube.