Routines for reading/writing data to/from FITS files.
General Definitions | |
typedef struct tagFITSFile | FITSFile |
Representation of a FITS file. More... | |
#define | FFIO_MAX 999 |
Maximum possible number of FITS array dimensions, and FITS table columns. More... | |
Open/Close FITS File, and Write History Information to Primary FITS Header-Data Unit | |
These functions open a FITS file The current header-data unit (HDU) may be changed, either by seeking a named HDU or by returning to the primary (first) HDU. History information may also be written to the primary HDU. | |
void | XLALFITSFileClose (FITSFile *file) |
FITSFile * | XLALFITSFileOpenWrite (const CHAR *file_name) |
FITSFile * | XLALFITSFileOpenRead (const CHAR *file_name) |
int | XLALFITSFileSeekPrimaryHDU (FITSFile *file) |
int | XLALFITSFileSeekNamedHDU (FITSFile *file, const CHAR *name) |
int | XLALFITSFileWriteHistory (FITSFile *file, const CHAR *format,...) _LAL_GCC_PRINTF_FORMAT_(2 |
int int | XLALFITSFileWriteVCSInfo (FITSFile *file, const LALVCSInfoList vcs_list) |
int | XLALFITSFileWriteUVarCmdLine (FITSFile *file) |
Query FITS Header-Data Unit | |
These function perform various queries of the current FITS header-data unit (HDU):
| |
int | XLALFITSHeaderQueryKeyExists (FITSFile *file, const CHAR *key, BOOLEAN *exists) |
Write/Read Table to/from FITS File | |
These functions write/read arbitrary tables to/from a FITS binary table extension data unit. A call to XLALFITSTableOpenWrite() or XLALFITSTableOpenRead() is required first; the latter returns the number of rows in the table First, XLAL_FITS_TABLE_COLUMN_BEGIN( #define XLAL_FITS_TABLE_COLUMN_BEGIN(record_type) Definition: FITSFileIO.h:239 char CHAR int32_t INT4 float REAL4 Next, XLAL_FITS_TABLE_COLUMN_ADD( #define XLAL_FITS_TABLE_COLUMN_ADD_NAMED(file, type, field, col_name) Definition: FITSFileIO.h:246 #define XLAL_FITS_TABLE_COLUMN_ADD_ARRAY(file, type, field) Definition: FITSFileIO.h:249 #define XLAL_FITS_TABLE_COLUMN_ADD(file, type, field) Definition: FITSFileIO.h:243 The Finally, XLALFITSTableWriteRow() or XLALFITSTableReadRow() are called to write/read table rows; the latter returns the number of rows remaining in the table | |
int | XLALFITSTableOpenWrite (FITSFile *file, const CHAR *name, const CHAR *comment) |
int | XLALFITSTableOpenRead (FITSFile *file, const CHAR *name, UINT8 *nrows) |
int | XLALFITSTableWriteRow (FITSFile *file, const void *record) |
int | XLALFITSTableReadRow (FITSFile *file, void *record, UINT8 *rem_nrows) |
#define | XLAL_FITS_TABLE_COLUMN_BEGIN(record_type) |
#define | XLAL_FITS_TABLE_COLUMN_ADD(file, type, field) |
#define | XLAL_FITS_TABLE_COLUMN_ADD_NAMED(file, type, field, col_name) |
#define | XLAL_FITS_TABLE_COLUMN_ADD_ARRAY(file, type, field) |
#define | XLAL_FITS_TABLE_COLUMN_ADD_ARRAY_NAMED(file, type, field, col_name) |
#define | XLAL_FITS_TABLE_COLUMN_ADD_ARRAY2(file, type, field) |
#define | XLAL_FITS_TABLE_COLUMN_ADD_ARRAY2_NAMED(file, type, field, col_name) |
#define | XLAL_FITS_TABLE_COLUMN_ADD_PTR_ARRAY(file, type, length, field) |
#define | XLAL_FITS_TABLE_COLUMN_ADD_PTR_ARRAY_NAMED(file, type, length, field, col_name) |
#define | XLAL_FITS_TABLE_COLUMN_ADD_PTR_ARRAY2(file, type, length, field) |
#define | XLAL_FITS_TABLE_COLUMN_ADD_PTR_ARRAY2_NAMED(file, type, length, field, col_name) |
#define | XLAL_FITS_TABLE_COLUMN_PTR_STRUCT_BEGIN(field, ptr_record_type, length) |
#define | XLAL_FITS_TABLE_COLUMN_ADD_PTR_STRUCT_NAMED(file, index, type, field, col_name) |
#define | XLAL_FITS_TABLE_COLUMN_ADD_PTR_STRUCT_ARRAY_NAMED(file, index, type, field, col_name) |
#define | XLAL_FITS_TABLE_COLUMN_ADD_PTR_STRUCT_ARRAY2_NAMED(file, index, type, field, col_name) |
void XLALFITSFileClose | ( | FITSFile * | file | ) |
int int XLALFITSFileWriteVCSInfo | ( | FITSFile * | file, |
const LALVCSInfoList | vcs_list | ||
) |
int int XLALFITSHeaderWriteBOOLEAN | ( | FITSFile * | file, |
const CHAR * | key, | ||
const BOOLEAN | value, | ||
const CHAR * | comment | ||
) |
int XLALFITSHeaderWriteUINT2 | ( | FITSFile * | file, |
const CHAR * | key, | ||
const UINT2 | value, | ||
const CHAR * | comment | ||
) |
int XLALFITSHeaderWriteUINT4 | ( | FITSFile * | file, |
const CHAR * | key, | ||
const UINT4 | value, | ||
const CHAR * | comment | ||
) |
int XLALFITSHeaderWriteUINT8 | ( | FITSFile * | file, |
const CHAR * | key, | ||
const UINT8 | value, | ||
const CHAR * | comment | ||
) |
int XLALFITSHeaderWriteINT2 | ( | FITSFile * | file, |
const CHAR * | key, | ||
const INT2 | value, | ||
const CHAR * | comment | ||
) |
int XLALFITSHeaderWriteINT4 | ( | FITSFile * | file, |
const CHAR * | key, | ||
const INT4 | value, | ||
const CHAR * | comment | ||
) |
int XLALFITSHeaderWriteINT8 | ( | FITSFile * | file, |
const CHAR * | key, | ||
const INT8 | value, | ||
const CHAR * | comment | ||
) |
int XLALFITSHeaderWriteREAL4 | ( | FITSFile * | file, |
const CHAR * | key, | ||
const REAL4 | value, | ||
const CHAR * | comment | ||
) |
int XLALFITSHeaderWriteREAL8 | ( | FITSFile * | file, |
const CHAR * | key, | ||
const REAL8 | value, | ||
const CHAR * | comment | ||
) |
int XLALFITSHeaderWriteCOMPLEX8 | ( | FITSFile * | file, |
const CHAR * | key, | ||
const COMPLEX8 | value, | ||
const CHAR * | comment | ||
) |
int XLALFITSHeaderWriteCOMPLEX16 | ( | FITSFile * | file, |
const CHAR * | key, | ||
const COMPLEX16 | value, | ||
const CHAR * | comment | ||
) |
int XLALFITSHeaderWriteString | ( | FITSFile * | file, |
const CHAR * | key, | ||
const CHAR * | value, | ||
const CHAR * | comment | ||
) |
int XLALFITSHeaderWriteStringVector | ( | FITSFile * | file, |
const CHAR * | key, | ||
const LALStringVector * | values, | ||
const CHAR * | comment | ||
) |
int XLALFITSHeaderReadStringVector | ( | FITSFile * | file, |
const CHAR * | key, | ||
LALStringVector ** | values | ||
) |
int XLALFITSHeaderWriteGPSTime | ( | FITSFile * | file, |
const CHAR * | key, | ||
const LIGOTimeGPS * | value, | ||
const CHAR * | comment | ||
) |
int XLALFITSHeaderReadGPSTime | ( | FITSFile * | file, |
const CHAR * | key, | ||
LIGOTimeGPS * | value | ||
) |
int XLALFITSArrayOpenWrite | ( | FITSFile * | file, |
const CHAR * | name, | ||
const size_t | ndim, | ||
const size_t | dims[], | ||
const CHAR * | comment | ||
) |
int XLALFITSArrayOpenWrite1 | ( | FITSFile * | file, |
const CHAR * | name, | ||
const size_t | dim0, | ||
const CHAR * | comment | ||
) |
int XLALFITSArrayOpenWrite2 | ( | FITSFile * | file, |
const CHAR * | name, | ||
const size_t | dim0, | ||
const size_t | dim1, | ||
const CHAR * | comment | ||
) |
typedef struct tagFITSFile FITSFile |
Representation of a FITS file.
Definition at line 1 of file FITSFileIO.h.
#define FFIO_MAX 999 |
Maximum possible number of FITS array dimensions, and FITS table columns.
Definition at line 49 of file FITSFileIO.h.
#define XLAL_FITS_TABLE_COLUMN_BEGIN | ( | record_type | ) |
Definition at line 239 of file FITSFileIO.h.
Definition at line 243 of file FITSFileIO.h.
Definition at line 246 of file FITSFileIO.h.
Definition at line 249 of file FITSFileIO.h.
Definition at line 252 of file FITSFileIO.h.
Definition at line 255 of file FITSFileIO.h.
Definition at line 258 of file FITSFileIO.h.
Definition at line 261 of file FITSFileIO.h.
Definition at line 264 of file FITSFileIO.h.
Definition at line 267 of file FITSFileIO.h.
Definition at line 270 of file FITSFileIO.h.
#define XLAL_FITS_TABLE_COLUMN_PTR_STRUCT_BEGIN | ( | field, | |
ptr_record_type, | |||
length | |||
) |
Definition at line 273 of file FITSFileIO.h.
Definition at line 278 of file FITSFileIO.h.
Definition at line 281 of file FITSFileIO.h.
Definition at line 284 of file FITSFileIO.h.