Tiled Compression#
Warning
This module is in development (so marked as private), anything may change in future releases. This documentation is provided to aid in further development of this submodule and related functionality.
This module implements the compression and decompression algorithms, and associated functionality for FITS Tiled Image Compression. The goal of this submodule is to expose a useful Python API, which different functionality can be built on for reading these files.
The functionality is roughly split up into the following sections:
Low level compression and decompression functions implemented in cfitsio (for all algorithms other than the GZIP ones, which use the Python stdlib).
The quantize and dequantize functions from cfitsio.
A Python C-API module which wraps all the compression and quantize cfitsio functions.
numcodecs style
Codec
classes for each compression algorithms.compress_image_data
anddecompress_image_data_section
functions which are called fromCompImageHDU
.
astropy.io.fits.hdu.compressed._tiled_compression Module#
This module contains low level helper functions for compressing and decompressing buffer for the Tiled Table Compression algorithms as specified in the FITS 4 standard.
Functions#
|
Compress the data in a |
Decompress the data in a |
astropy.io.fits.hdu.compressed._codecs Module#
This module contains the FITS compression algorithms in numcodecs style Codecs.
Classes#
|
The FITS GZIP 1 compression and decompression algorithm. |
|
The FITS GZIP2 compression and decompression algorithm. |
|
The FITS RICE1 compression and decompression algorithm. |
|
The FITS PLIO1 compression and decompression algorithm. |
|
The FITS HCompress compression and decompression algorithm. |
A dummy compression/decompression algorithm that stores the data as-is. |
Class Inheritance Diagram#
astropy.io.fits.hdu.compressed._quantization Module#
This file contains the code for Quantizing / Dequantizing floats.
Classes#
|
Quantization of floating-point data following the FITS standard. |