STPyFITS

The stpyfits module serves as a layer on top of astropy.io.fits to support the use of single-valued arrays in extensions using the NPIX/PIXVALUE convention developed at STScI. The standard astropy.io.fits module implements the strict FITS conventions, and these single-valued arrays are not part of the FITS standard.

The stpyfits module is an extension to the astropy.io.fits module which offers additional features specific to STScI. These features include the handling of Constant Data Value Arrays.

class stsci.tools.stpyfits.ConstantValuePrimaryHDU(data=None, header=None, do_not_scale_image_data=False, uint=False, **kwargs)

Bases: stsci.tools.stpyfits._ConstantValueImageBaseHDU, astropy.io.fits.hdu.image.PrimaryHDU

Primary HDUs with constant value arrays.

class stsci.tools.stpyfits.ConstantValueImageHDU(data=None, header=None, do_not_scale_image_data=False, uint=False, **kwargs)

Bases: stsci.tools.stpyfits._ConstantValueImageBaseHDU, astropy.io.fits.hdu.image.ImageHDU

Image extension HDUs with constant value arrays.