AstroDataMixin
- class astrodata.AstroDataMixin[source]
Bases:
object
Mixin with AstroData-like behavior for NDData-like classes.
Mixin for
NDData
-like classes (such asSpectrum1D
) to enable them to behave similarly toAstroData
objects.- These behaviors are:
mask
attributes are combined with bitwise, not logical, or, since the individual bits are important.The WCS must be a
gwcs.WCS
object and slicing results in the model being modified.There is a settable
variance
attribute.Additional attributes such as OBJMASK can be extracted from the .meta[‘other’] dict
Attributes Summary
The shape of the data.
The size of the data.
Access the contents of
uncertainty
.Return the WCS of the data as a gWCS object.
Attributes Documentation
- shape
The shape of the data.
- size
The size of the data.
- variance
Access the contents of
uncertainty
.
- wcs
Return the WCS of the data as a gWCS object.
This is a gWCS object, not a FITS WCS object.
This is returning wcs from an inhertited class, see NDData.wcs for more details.