.. include:: ../images.rst CFITSIO installation ~~~~~~~~~~~~~~~~~~~~~~~~ whatis : CFITSIO is a library for reading and writing data files in FITS (Flexible Image Transport System) data format source : NASA site: `http://heasarc.gsfc.nasa.gov/docs/software/fitsio/fitsio.html `__ .. note:: For the recommended **CMake** build (see :doc:`cwb`), the easiest way to get CFITSIO is via conda-forge, matching the version required by your ``healpix_cxx`` package (see :doc:`healpix` and the `library README `__): .. code-block:: bash conda install -c conda-forge cfitsio For the **traditional Makefile** build, CFITSIO is instead built from source, as described below. Download cfitsio-3.45 .. code-block:: bash wget ftp://heasarc.gsfc.nasa.gov/software/fitsio/c/cfitsio3450.tar.gz Installation : .. code-block:: bash gunzip cfitsio3450.tar.gz tar xvf cfitsio3450.tar mv cfitsio cfitsio-3.45 cd cfitsio-3.45 ./configure CFLAGS=-O make shared .. note:: set HOME_CFITSIO environment variable in watenv script.