PrecompressedImage#

class lsst.images.fits.PrecompressedImage(header: Header, data: FITS_rec)#

Bases: object

Already-compressed FITS HDUs that are attached to high-level objects via FitsOpaqueMetadata, allowing lossy-compressed pixel values to be round-tripped exactly.

Methods Summary

from_bintable(hdu)

Construct from a binary table HDU.

Methods Documentation

classmethod from_bintable(hdu: BinTableHDU) Self#

Construct from a binary table HDU.

Parameters#

hdu

Binary table HDU, typically read from a FITS file opened with disable_image_compression=True.

Returns#

PrecompressedImage

A PrecompressedImage instance.