qfits_header.c File Reference


Typedefs

typedef _keytuple_ keytuple
typedef enum _keytype_ keytype
 Possible key types.

Enumerations

enum  _keytype_ {
  keytype_undef = 0, keytype_top = 1, keytype_bitpix = 2, keytype_naxis = 3,
  keytype_naxis1 = 11, keytype_naxis2 = 12, keytype_naxis3 = 13, keytype_naxis4 = 14,
  keytype_naxisi = 20, keytype_group = 30, keytype_pcount = 31, keytype_gcount = 32,
  keytype_extend = 33, keytype_bscale = 34, keytype_bzero = 35, keytype_tfields = 36,
  keytype_tbcoli = 40, keytype_tformi = 41, keytype_primary = 100, keytype_hierarch_dpr = 200,
  keytype_hierarch_obs = 201, keytype_hierarch_tpl = 202, keytype_hierarch_gen = 203, keytype_hierarch_tel = 204,
  keytype_hierarch_ins = 205, keytype_hierarch_det = 206, keytype_hierarch_log = 207, keytype_hierarch_pro = 208,
  keytype_hierarch = 300, keytype_history = 400, keytype_comment = 500, keytype_end = 1000
}

Functions

qfits_header * qfits_header_new (void)
 FITS header constructor.
qfits_header * qfits_header_default (void)
 FITS header default constructor.
void qfits_header_add (qfits_header *hdr, const char *key, const char *val, const char *com, const char *lin)
 Add a new card to a FITS header.
void qfits_header_add_after (qfits_header *hdr, const char *after, const char *key, const char *val, const char *com, const char *lin)
 add a new card to a FITS header
void qfits_header_append (qfits_header *hdr, const char *key, const char *val, const char *com, const char *lin)
 Append a new card to a FITS header.
void qfits_header_del (qfits_header *hdr, const char *key)
 Delete a card in a FITS header.
void qfits_header_mod (qfits_header *hdr, const char *key, const char *val, const char *com)
 Modifies a FITS card.
int qfits_header_sort (qfits_header **hdr)
 Sort a FITS header.
qfits_header * qfits_header_copy (const qfits_header *src)
 Copy a FITS header.
void qfits_header_destroy (qfits_header *hdr)
 qfits_header destructor
char * qfits_header_getstr (const qfits_header *hdr, const char *key)
 Return the value associated to a key, as a string.
int qfits_header_getitem (const qfits_header *hdr, int idx, char *key, char *val, char *com, char *lin)
 Return the i-th key/val/com/line tuple in a header.
char * qfits_header_getcom (const qfits_header *hdr, const char *key)
 Return the comment associated to a key, as a string.
int qfits_header_getint (const qfits_header *hdr, const char *key, int errval)
 Return the value associated to a key, as an int.
double qfits_header_getdouble (const qfits_header *hdr, const char *key, double errval)
 Return the value associated to a key, as a double.
int qfits_header_getboolean (const qfits_header *hdr, const char *key, int errval)
 Return the value associated to a key, as a boolean (int).
int qfits_header_dump (const qfits_header *hdr, FILE *out)
 Dump a FITS header to an opened file.

Typedef Documentation

typedef struct _keytuple_ keytuple
 

typedef enum _keytype_ keytype
 

Possible key types.

This enum stores all possible types for a FITS keyword. These determine the order of appearance in a header, they are a crucial point for DICB (ESO) compatibility. This classification is internal to this module.


Enumeration Type Documentation

enum _keytype_
 

Enumeration values:
keytype_undef 
keytype_top 
keytype_bitpix 
keytype_naxis 
keytype_naxis1 
keytype_naxis2 
keytype_naxis3 
keytype_naxis4 
keytype_naxisi 
keytype_group 
keytype_pcount 
keytype_gcount 
keytype_extend 
keytype_bscale 
keytype_bzero 
keytype_tfields 
keytype_tbcoli 
keytype_tformi 
keytype_primary 
keytype_hierarch_dpr 
keytype_hierarch_obs 
keytype_hierarch_tpl 
keytype_hierarch_gen 
keytype_hierarch_tel 
keytype_hierarch_ins 
keytype_hierarch_det 
keytype_hierarch_log 
keytype_hierarch_pro 
keytype_hierarch 
keytype_history 
keytype_comment 
keytype_end