Functions | |
| qfits_header * | qfits_header_read (const char *filename) |
| Read a FITS header from a file to an internal structure. | |
| qfits_header * | qfits_header_read_hdr (const char *filename) |
| Read a FITS header from a 'hdr' file. | |
| qfits_header * | qfits_header_read_hdr_string (const unsigned char *hdr_str, int nb_char) |
| Read a FITS header from a 'hdr' string. | |
| qfits_header * | qfits_header_readext (const char *filename, int xtnum) |
| Read an extension header from a FITS file. | |
| void | qfits_zeropad (const char *filename) |
| Pad an existing file with zeros to a multiple of 2880. | |
| int | qfits_is_fits (const char *filename) |
| Identify if a file is a FITS file. | |
| int | qfits_get_hdrinfo (const char *filename, int xtnum, int *seg_start, int *seg_size) |
| Retrieve offset to start and size of a header in a FITS file. | |
| int | qfits_get_datinfo (const char *filename, int xtnum, int *seg_start, int *seg_size) |
| Retrieve offset to start and size of a data section in a file. | |
| int qfits_get_datinfo | ( | const char * | filename, | |
| int | xtnum, | |||
| int * | seg_start, | |||
| int * | seg_size | |||
| ) |
Retrieve offset to start and size of a data section in a file.
| filename | Name of the file to examine. | |
| xtnum | Extension number (0 for main). | |
| seg_start | Segment start in bytes (output). | |
| seg_size | Segment size in bytes (output). |
You must provide an extension number for the header, 0 meaning the main header in the file.
| int qfits_get_hdrinfo | ( | const char * | filename, | |
| int | xtnum, | |||
| int * | seg_start, | |||
| int * | seg_size | |||
| ) |
Retrieve offset to start and size of a header in a FITS file.
| filename | Name of the file to examine | |
| xtnum | Extension number (0 for main) | |
| seg_start | Segment start in bytes (output) | |
| seg_size | Segment size in bytes (output) |
You must provide an extension number for the header, 0 meaning the main header in the file.
| qfits_header* qfits_header_read | ( | const char * | filename | ) |
Read a FITS header from a file to an internal structure.
| filename | Name of the file to be read |
Direct access to the structure is not foreseen, use accessor functions in fits_h.h
Value, comment, and original line might be NULL pointers.
| qfits_header* qfits_header_read_hdr | ( | const char * | filename | ) |
Read a FITS header from a 'hdr' file.
| filename | Name of the file to be read |
| qfits_header* qfits_header_read_hdr_string | ( | const unsigned char * | hdr_str, | |
| int | nb_char | |||
| ) |
Read a FITS header from a 'hdr' string.
| hdr_str | String containing the hdr file | |
| nb_char | Number of characters in the string |
| qfits_header* qfits_header_readext | ( | const char * | filename, | |
| int | xtnum | |||
| ) |
Read an extension header from a FITS file.
| filename | Name of the FITS file to read | |
| xtnum | Extension number to read, starting from 0. |
Returns NULL in case of error.
| int qfits_is_fits | ( | const char * | filename | ) |
Identify if a file is a FITS file.
| filename | name of the file to check |
| void qfits_zeropad | ( | const char * | filename | ) |
Pad an existing file with zeros to a multiple of 2880.
| filename | Name of the file to pad. |