GenerateTestData
Writes test data to the file. The data's in the form 0, 1, 2 ... etc. The purpose of the method is purely for testing when a FITS image is otherwise unavailable.
Syntax
void GenerateTestData();
Parameters
None
Returns
None
Required Headers
CFitsFile.h
Namespace
arc
Throws
std::runtime_error
Remarks
After executing this method the image data contained within the CFitsFile object will look something like the image below. Note that larger image dimensions will result in more "striped" blocks, while smaller image dimensions will result in fewer "striped" blocks. The image below is for a 512x600 pixel image.

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