CompoundSpectralRegion#
- class specutils.CompoundSpectralRegion(region1, region2, op)[source]#
Bases:
objectA class that represents the logical combination of two regions in sky coordinates.
- Parameters:
- region1
SpectralRegion The first spectral region.
- region2
SpectralRegion The second spectral region.
- operatorcallable
A callable binary operator.
- region1
Attributes Summary
Methods Summary
contains(spectral_value)to_mask(spectrum)Create a mask based on the input Spectrum's spectral_axis.
Method to convert the compound region to a SpectralRegion defining the same subregions.
Attributes Documentation
- operator#
Methods Documentation