| NAME | VALUE |
| READMODE | READONLY (cfitsio) |
| READWRITEMODE | READWRITE (cfitsio) |
// This code demonstrates how to open a FITS file
// for read/write mode.
#include <iostream.h>
#include "CFitsFile.h"
using namespace std;
using namespace arc;
int main()
{
try {
CFitsFile cFits( "Image.fit", CFitsFile::READWRITEMODE );
// .... do something with file ....
}
catch ( std::exception &e )
{
cerr << "Exception Occurred: " << e.what() << endl;
}
}
© Astronomical Research Cameras, Inc.