Files | |
| file | psFits.h |
| Contains Fits I/O routines. | |
| file | psFitsHeader.h |
| Contains Fits header I/O routines. | |
| file | psFitsImage.h |
| Contains Fits I/O routines. | |
| file | psFitsTable.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 * | psFitsOpen (const char *filename, const char *mode) |
| Opens a FITS file and allocates the associated psFits object. | |
| bool | psFitsClose (psFits *fits) |
| Closes a FITS file. | |
| bool | psMemCheckFits (psPtr ptr) |
| Checks the type of a particular pointer. | |
| 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. | |
| bool | psFitsMoveLast (psFits *fits) |
| Moves the FITS HDU to the end of the file. | |
| int | psFitsGetExtNum (const psFits *fits) |
| Get the current extension number, where 0 is the primary HDU. | |
| psString | psFitsGetExtName (const psFits *fits) |
| Get the current extension name. | |
| bool | psFitsSetExtName (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. | |
| bool | psFitsDeleteExtNum (psFits *fits, int extnum, bool relative) |
| Remove the an HDU as specified by number. | |
| bool | psFitsDeleteExtName (psFits *fits, const char *extname) |
| Remove the an HDU as specified by extension name. | |
| psFitsType | psFitsGetExtType (const psFits *fits) |
| Get the extension type of the current HDU. | |
| bool | psFitsTruncate (psFits *fits) |
| Delete all extensions after the current position. | |
| 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 (psFits *fits, const psMetadata *output) |
| Writes the values of the metadata to the current HDU header. | |
| bool | psFitsWriteBlank (psFits *fits, const psMetadata *output) |
| Writes a "blank" --- a header only, with no image or table. | |
| bool | psFitsHeaderValidate (psMetadata *header) |
| psFitsHeaderValidate validates the supplied header so that it is in compliance to the FITS standard for header keyword names and types. | |
| psImage * | psFitsReadImage (const psFits *fits, psRegion region, int z) |
| Reads an image, given the desired region and z-plane. | |
| bool | psFitsWriteImage (psFits *fits, const psMetadata *header, const psImage *input, int depth, const char *extname) |
| Writes an image, given the desired region and z-plane. | |
| bool | psFitsInsertImage (psFits *fits, const psMetadata *header, const psImage *input, int depth, const char *extname, bool after) |
| Writes an image, given the desired region and z-plane. | |
| bool | psFitsUpdateImage (psFits *fits, const psImage *input, int x0, int y0, int z) |
| Updates the FITS file image, given the desired region and z-plane. | |
| psArray * | psFitsReadImageCube (const psFits *fits, psRegion region) |
| bool | psFitsWriteImageCube (psFits *fits, psMetadata *header, const psArray *input, const char *extname) |
| bool | psFitsUpdateImageCube (psFits *fits, const psArray *input, int x0, int y0) |
| 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 (psFits *fits, const psMetadata *header, const psArray *table, const char *extname) |
| Writes a whole FITS table. | |
| bool | psFitsInsertTable (psFits *fits, const psMetadata *header, const psArray *table, const char *extname, bool after) |
| Inserts a whole FITS table. | |
| bool | psFitsUpdateTable (psFits *fits, const psMetadata *data, int row) |
| Updates a FITS table. | |
|
|
FITS HDU type. Enumeration for FITS HDU type. |
|
|
Closes a FITS file.
|
|
||||||||||||
|
Remove the an HDU as specified by extension name.
|
|
||||||||||||||||
|
Remove the an HDU as specified by number.
|
|
|
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.
|
|
|
psFitsHeaderValidate validates the supplied header so that it is in compliance to the FITS standard for header keyword names and types.
|
|
||||||||||||||||||||||||||||
|
Writes an image, given the desired region and z-plane. A new IMAGE HDU is appended to the end of the FITS file.
|
|
||||||||||||||||||||||||
|
Inserts a whole FITS table. A new HDU of the type BINTABLE is inserted either before or after, depending on the AFTER parameter, the current HDU.
|
|
||||||||||||
|
Moves the FITS HDU to the specified extension name.
|
|
||||||||||||||||
|
Moves the FITS HDU to the specified extension number.
|
|
|
Moves the FITS HDU to the end of the file.
|
|
||||||||||||
|
Opens a FITS file and allocates the associated psFits object.
|
|
||||||||||||
|
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.
|
|
|
Delete all extensions after the current position.
|
|
||||||||||||||||||||||||
|
Updates the FITS file image, given the desired region and z-plane. a new IMAGE HDU is inserted before or after, depending on the AFTER parameter, the current HDU.
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||
|
Updates a FITS table. The current HDU type must be either PS_FITS_TYPE_BINARY_TABLE or PS_FITS_TYPE_ASCII_TABLE.
|
|
||||||||||||
|
Writes a "blank" --- a header only, with no image or table.
|
|
||||||||||||
|
Writes the values of the metadata to the current HDU header. Doesn't check if the header has to be created.
|
|
||||||||||||||||||||||||
|
Writes an image, given the desired region and z-plane.
|
|
||||||||||||||||||||
|
|
|
||||||||||||||||||||
|
Writes a whole FITS table. A new HDU of the type BINTABLE is appended to the file.
|
|
|
Checks the type of a particular pointer. Uses the appropriate deallocation function in psMemBlock to check the ptr datatype.
|
1.4.4