The CFitsFile library provides a single class that uses the cfitsio library to create, read, or modify FITS files. This class is not a pure wrapper around the cfitsio library as this class only implements a subset of the available functions. This class can read/write single image files ( 16 or 32-bit ) along with data cubes, sub-images and header keywords.
Single Image Data Cube
+--------------+ +--------------+
| | | +--------------+
| | | | +--------------+
| | | | | +--------------+
| | | | | | |
| | | | | | |
| | | | | | |
+--------------+ +---| | | |
+---| | |
+--| |
+--------------+