bundles / astropy 7.0.1 / astropy / io / fits / hdu / compressed / _codecs / Rice1
class
astropy.io.fits.hdu.compressed._codecs:Rice1
source: /astropy/io/fits/hdu/compressed/_codecs.py :230
Signature
class Rice1 ( * , blocksize : int , bytepix : int , tilesize : int ) Members
Summary
The FITS RICE1 compression and decompression algorithm.
Extended Summary
The Rice algorithm [1] is simple and very fast It requires only enough memory to hold a single block of 16 or 32 pixels at a time. It codes the pixels in small blocks and so is able to adapt very quickly to changes in the input image statistics (e.g., Rice has no problem handling cosmic rays, bright stars, saturated pixels, etc.).
Parameters
blocksizeThe blocksize to use, each tile is coded into blocks a number of pixels wide. The default value in FITS headers is 32 pixels per block.
bytepixThe number of 8-bit buffer in each original integer pixel value.
Aliases
-
astropy.io.fits.hdu.compressed._codecs.Rice1