extract_bounding_spectral_region

specutils.manipulation.extract_bounding_spectral_region(spectrum, region)[source]

Extract the entire bounding region that encompasses all sub-regions contained in a multi-sub-region instance of SpectralRegion.

In case only one sub-region exists, this method is equivalent to extract_region.

Parameters:
spectrum: `~specutils.Spectrum1D`

The spectrum object from which the region will be extracted.

region: `~specutils.SpectralRegion`

The spectral region to extract from the original spectrum, comprised of one or more sub-regions.

Returns:
spectrum: Spectrum1D

Excised spectrum from the bounding region defined by the set of sub-regions in the input region instance.