Header Constants
Syntax
CFitsFile::FITS_STRING_KEY
CFitsFile::FITS_INTEGER_KEY
CFitsFile::FITS_DOUBLE_KEY
CFitsFile::FITS_LOGICAL_KEY
CFitsFile::FITS_COMMENT_KEY
CFitsFile::FITS_HISTORY_KEY
CFitsFile::FITS_DATE_KEY
Type
const static int
Required Headers
CFitsFile.h
Remarks
Integer class constants that correspond to the valid types for writing and updating FITS header keywords.

NAME DESCRIPTION
FITS_STRING_KEY String keyword - example: "hello"
FITS_INTEGER_KEY Integer keyword - example: 56
FITS_DOUBLE_KEY Double keyword - example: 0.78
FITS_LOGICAL_KEY Boolean ( character ) keyword - example: 'T' or 'F'
FITS_COMMENT_KEY Comment keyword - example: "This is a comment!"
FITS_HISTORY_KEY History keyword - example: "I did something!"
FITS_DATE_KEY Date keyword - Inserts date/time in the following format: yyyy-mm-ddThh:mm:ss
Example
        // This code demonstrates how to write a string
        // header keyword to a FITS file.

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

        using namespace std;
        using namespace arc;

        int main()
        {
            try {
                CFitsFile cFits( "Image.fit", 512, 600 );

                cFits.WriteKeyword( "OBJECT",
                                    "The Sun",
                                    CFitsFile::FITS_STRING_KEY,
                                    "Name of object" );
            }
            catch ( std::exception &e )
            {
                cerr << "Exception Occurred: " << e.what() << endl;
            }
        }

© Astronomical Research Cameras, Inc.