MegaPrime CFITSIO/RICE Image Compression
Introduction
MegaPrime images distributed by CADC to registered members of CFHTLS community have been compressed using the RICE algorithm as implemented in NASA's HEARSARC CFITSIO library. Please consult the data compression section of the CFITSIO web site for more details. This procedure offers several advantages over the more widespread "gzip":
- It offers faster and more efficient compression. This is vital for the distribution of images as large as those produced by MegaPrime over the networks.
- Headers for all extensions are still visible in compressed images.
- Decompression can be performed on a single extension if desired.
- The NOAO/IRAF group is currently working to implement this type of compression inside the IRAF FITS kernel. Once this work has been completed, installing the CFITSIO package (see below) will no longer be necessary.
CFITSIO Installation
To decompress MegaPrime images, you will need the CFITSIO imcopy utility. This utility is included in version 2.440 (or later) of the CFITSIO package. You can install CFITSIO by following these steps:
If you encounter problems with your CFITSIO installation, please contact CADC.
CFITSIO imcopy usage examples
Note that the names of images compressed with CFITSIO/RICE were given the suffix ".fz". In addition to the
imcopy usage examples provided on the CFITSIO web site, other important examples include: