Naxes Constants
Syntax
CFitsFile::NAXES_COL
CFitsFile::NAXES_ROW
CFitsFile::NAXES_NOF
CFitsFile::NAXES_SIZE
Type
const static int
Required Headers
CFitsFile.h
Remarks
Integer class constants that correspond to indexes for the naxes values returned by a call to the GetParameters method. One constant corresponds to the valid size of the naxes array.

NAME DESCRIPTION VALUE
NAXES_COL Naxes array index for image column dimension ( in pixels ) 0
NAXES_ROW Naxes array index for image row dimension ( in pixels ) 1
NAXES_NOF Naxes array index for number of frames in FITS file 2
NAXES_SIZE Required size of naxes array when passed into GetParameters method. 3
Example
        // This code demonstrates how to read the image
        // dimensions from the naxes header values.

        #include <iostream.h>
        #include "CFitsFile.h"

        using namespace std;
        using namespace arc;

        int main()
        {
            int naxes[ CFitsFile::NAXES_SIZE ] = { 0, 0, 0 };

            try {
                CFitsFile cFits( "Image.fit" );
                cFits.GetParameters( naxes );

                cout << "Image Rows: " << naxes[ CFitsFile:: NAXES_ROW ] << endl;
                cout << "Image Cols: " << naxes[ CFitsFile:: NAXES_COL ] << endl;
            }
            catch ( std::exception &e )
            {
                cerr << "Exception Occurred: " << e.what() << endl;
            }
        }

© Astronomical Research Cameras, Inc.