Thin wrapper around some of FITSIO's FITS file writing functions. More...
#include <FITSWriter.h>
Public Member Functions | |
| FITSWriter () | |
| Constructor. More... | |
| virtual | ~FITSWriter () |
| Destructor. | |
| FITSStatus | getStatus () const |
| Returns the status code of the last CFITSIO call. | |
| bool | open (string fileName) |
| Creates a new FITS file with specified file name. More... | |
| void | close () |
| void | createImage (long width, long height, int type=FLOAT_IMG) |
| void | writeHeader (const char *keyword, int type, void *value, const char *comment) |
| void | writeHeader (const char *keyword, const char *value, const char *comment) |
| void | writeHeader (const char *keyword, float value, const char *comment) |
| void | writeHeader (const char *keyword, int value, const char *comment) |
| void | comment (const char *value) |
| void | date () |
| void | write (long x, long y, long count, void *data, int type) |
| Write FITS pixel data to the current HDU. More... | |
| void | write (long y, long count, float *data) |
| void | write (long y, long count, int16_t *data) |
| void | checkStatus (const char *errorMsg) |
Thin wrapper around some of FITSIO's FITS file writing functions.
See http://heasarc.gsfc.nasa.gov/fitsio/ for more information on FITSIO library. See http://heasarc.gsfc.nasa.gov/fitsio/c/c_user/ for FITSIO API reference.
| FITSWriter::FITSWriter | ( | ) |
Constructor.
The constructor doesn't open any files. To open a file, call FITSWriter::open().
| bool FITSWriter::open | ( | string | fileName) |
Creates a new FITS file with specified file name.
| fileName | file name of the created file |
| void FITSWriter::write | ( | long | x, |
| long | y, | ||
| long | count, | ||
| void * | data, | ||
| int | type | ||
| ) |
Write FITS pixel data to the current HDU.
| x | Position of the first pixel in data in the first dimension. |
| y | Position of the first pixel in data in the second dimension. |
| count | Number of pixels to write. |
| data | Pointer to the data to write. |
| type | Domain data type of the data (for example, TFLOAT for float). |
1.8.4