Files | |
| file | psFits.h |
| Contains Fits I/O routines. | |
Data Structures | |
| struct | psFits |
| FITS file object. More... | |
Enumerations | |
| enum | psFitsType { PS_FITS_TYPE_NONE = -1, PS_FITS_TYPE_IMAGE = IMAGE_HDU, PS_FITS_TYPE_BINARY_TABLE = BINARY_TBL, PS_FITS_TYPE_ASCII_TABLE = ASCII_TBL, PS_FITS_TYPE_ANY = ANY_HDU } |
| FITS HDU type. More... | |
Functions | |
| psFits * | psFitsAlloc (const char *name) |
| Opens a FITS file and allocates the associated psFits object. | |
| bool | psFitsMoveExtName (const psFits *fits, const char *extname) |
| Moves the FITS HDU to the specified extension name. | |
| bool | psFitsMoveExtNum (const psFits *fits, int extnum, bool relative) |
| Moves the FITS HDU to the specified extension number. | |
| int | psFitsGetExtNum (const psFits *fits) |
| Get the current extension number, where 0 is the primary HDU. | |
| char * | psFitsGetExtName (const psFits *fits) |
| Get the current extension name. | |
| bool | psFitsSetExtName (const psFits *fits, const char *name) |
| Set the current extension's name. | |
| int | psFitsGetSize (const psFits *fits) |
| Get the total number of HDUs in the FITS file. | |
| psFitsType | psFitsGetExtType (const psFits *fits) |
| Get the extension type of the current HDU. | |
| psMetadata * | psFitsReadHeader (psMetadata *out, const psFits *fits) |
| Reads the header of the current HDU. | |
| psMetadata * | psFitsReadHeaderSet (psMetadata *out, const psFits *fits) |
| Reads the header of all HDUs. | |
| bool | psFitsWriteHeader (const psMetadata *header, const psFits *fits) |
| Writes the values of the metadata to the current HDU header. | |
| psImage * | psFitsReadImage (psImage *out, const psFits *fits, psRegion region, int z) |
| Reads an image, given the desired region and z-plane. | |
| bool | psFitsWriteImage (const psFits *fits, const psMetadata *header, const psImage *input, int depth) |
| Writes an image, given the desired region and z-plane. | |
| bool | psFitsUpdateImage (const psFits *fits, const psImage *input, psRegion region, int z) |
| Updates the FITS file image, given the desired region and z-plane. | |
| psMetadata * | psFitsReadTableRow (const psFits *fits, int row) |
| Reads a table row. | |
| psArray * | psFitsReadTableColumn (const psFits *fits, const char *colname) |
| Reads a table column. | |
| psVector * | psFitsReadTableColumnNum (const psFits *fits, const char *colname) |
| Reads a table column of numbers. | |
| psArray * | psFitsReadTable (const psFits *fits) |
| Reads a whole FITS table. | |
| bool | psFitsWriteTable (const psFits *fits, psMetadata *header, psArray *table) |
| Writes a whole FITS table. | |
| bool | psFitsUpdateTable (const psFits *fits, psMetadata *data, int row) |
| Updates a FITS table. | |
|
|
FITS HDU type. Enumeration for FITS HDU type. |
|
|
Opens a FITS file and allocates the associated psFits object.
|
|
|
Get the current extension name.
|
|
|
Get the current extension number, where 0 is the primary HDU.
|
|
|
Get the extension type of the current HDU.
|
|
|
Get the total number of HDUs in the FITS file.
|
|
||||||||||||
|
Moves the FITS HDU to the specified extension name.
|
|
||||||||||||||||
|
Moves the FITS HDU to the specified extension number.
|
|
||||||||||||
|
Reads the header of the current HDU.
|
|
||||||||||||
|
Reads the header of all HDUs. The current HDU is not changed.
|
|
||||||||||||||||||||
|
Reads an image, given the desired region and z-plane.
|
|
|
Reads a whole FITS table. The current HDU type must be either PS_FITS_TYPE_BINARY_TABLE or PS_FITS_TYPE_ASCII_TABLE.
|
|
||||||||||||
|
Reads a table column. The current HDU type must be either PS_FITS_TYPE_BINARY_TABLE or PS_FITS_TYPE_ASCII_TABLE.
|
|
||||||||||||
|
Reads a table column of numbers. The current HDU type must be either PS_FITS_TYPE_BINARY_TABLE or PS_FITS_TYPE_ASCII_TABLE.
|
|
||||||||||||
|
Reads a table row. The current HDU type must be either PS_FITS_TYPE_BINARY_TABLE or PS_FITS_TYPE_ASCII_TABLE.
|
|
||||||||||||
|
Set the current extension's name.
|
|
||||||||||||||||||||
|
Updates the FITS file image, given the desired region and z-plane.
|
|
||||||||||||||||
|
Updates a FITS table. The current HDU type must be either PS_FITS_TYPE_BINARY_TABLE or PS_FITS_TYPE_ASCII_TABLE.
|
|
||||||||||||
|
Writes the values of the metadata to the current HDU header.
|
|
||||||||||||||||||||
|
Writes an image, given the desired region and z-plane.
|
|
||||||||||||||||
|
Writes a whole FITS table. The current HDU type must be either PS_FITS_TYPE_BINARY_TABLE or PS_FITS_TYPE_ASCII_TABLE.
|
1.4.1