AstroDataMixin

class astrodata.AstroDataMixin[source]

Bases: object

Mixin with AstroData-like behavior for NDData-like classes.

Mixin for NDData-like classes (such as Spectrum1D) to enable them to behave similarly to AstroData objects.

These behaviors are:
  1. mask attributes are combined with bitwise, not logical, or, since the individual bits are important.

  2. The WCS must be a gwcs.WCS object and slicing results in the model being modified.

  3. There is a settable variance attribute.

  4. Additional attributes such as OBJMASK can be extracted from the .meta[‘other’] dict

Attributes Summary

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.

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.