GNU Astronomy Utilities


Next: , Previous: , Up: Gnuastro library   [Contents][Index]


10.3.8 FITS files (fits.h)

The FITS format is the most common format to store data (images and tables) in astronomy. The CFITSIO library already provides a very good low-level collection of functions for manipulating FITS data. The low-level nature of CFITSIO is defined for versatility and portability. As a result, even a simple a basic operation, like reading an image or table column into memory, will require a special sequence of CFITSIO function calls which can be inconvenient and buggy to manage in separate locations. Therefore Gnuastro library provides wrappers for CFITSIO functions to make it much easier to read/write/modify FITS file data, header keywords and extensions. Hence, if you feel these functions don’t exactly do what you want, we strongly recommend reading the CFITSIO manual to use its great features directly.

All the functions and macros introduced in this section are declared in gnuastro/fits.h. When you include this header, you are also including CFITSIO’s fitsio.h header. So you don’t need to explicitly include fitsio.h anymore and can freely use any of its macros or functions in your code along with those discussed here.


Next: , Previous: , Up: Gnuastro library   [Contents][Index]