| 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 |
// 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.