// This code demonstrates how to create a 512x600
// 16-bit CFitsFile object and fill it with test
// data.
#include <iostream>
#include "CFitsFile.h"
using namespace std;
using namespace arc;
int main()
{
try
{
CFitsFile cFits( "Image.fit", 512, 600 );
cFits.GenerateTestData();
}
catch ( std::runtime_error &e )
{
cerr << "( CFitsFile Error ): " << e.what() << endl;
}
}
© Astronomical Research Cameras, Inc.