This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Determine if current image is compressed


TF = isCompressedImg(fptr)


TF = isCompressedImg(fptr) returns true if the image in the current HDU is compressed.

This function corresponds to the fits_is_compressed_image function in the CFITSIO library C API.


fptr = fits.openFile('tst0012.fits');
bool = fits.isCompressedImg(fptr);