CompoundSpectralRegion#

class specutils.CompoundSpectralRegion(region1, region2, op)[source]#

Bases: object

A class that represents the logical combination of two regions in sky coordinates.

Parameters:
region1SpectralRegion

The first spectral region.

region2SpectralRegion

The second spectral region.

operatorcallable

A callable binary operator.

Attributes Summary

Methods Summary

contains(spectral_value)

to_mask(spectrum)

Create a mask based on the input Spectrum's spectral_axis.

to_subregions()

Method to convert the compound region to a SpectralRegion defining the same subregions.

Attributes Documentation

operator#

Methods Documentation

contains(spectral_value)[source]#
to_mask(spectrum)[source]#

Create a mask based on the input Spectrum’s spectral_axis.

Parameters:
spectrumspecutils.Spectrum

The input spectrum for which to make a mask from the compound spectral region.

to_subregions()[source]#

Method to convert the compound region to a SpectralRegion defining the same subregions.