#include <qfits.h>
Data Fields | |
int | atom_nb |
int | atom_dec_nb |
int | atom_size |
tfits_type | atom_type |
char | tlabel [FITSVALSZ] |
char | tunit [FITSVALSZ] |
char | nullval [FITSVALSZ] |
char | tdisp [FITSVALSZ] |
int | zero_present |
float | zero |
int | scale_present |
float | scale |
int | off_beg |
int | readable |
This structure contains all information needed to read a column in a table. These informations come from the header. The qfits_table object contains a list of qfits_col objects.
This structure has to be created from scratch and filled if one want to generate a FITS table.
|
Number of decimals in a ASCII field. This value is always 0 for BIN tables |
|
Number of atoms in one field. In ASCII tables, it is the number of characters in the field as defined in TFORMd keyword. In BIN tables, it is the number of atoms in each field. For type 'A', it is the number of characters. A field with two complex object will have atom_nb = 4. |
|
Size of one element in bytes. In ASCII tables, atom_size is the size of the element once it has been converted in its 'destination' type. For example, if "123" is contained in an ASCII table in a column defined as I type, atom_nb=3, atom_size=4. In ASCII tables:
|
|
Type of data in the column as specified in TFORM keyword In ASCII tables : TFITS_ASCII_TYPE_* with *=A, I, F, E or D In BIN tables : TFITS_BIN_TYPE_* with *=L, X, B, I, J, A, E, D, C, M or P |
|
Null value |
|
Offset between the beg. of the table and the beg. of the column. |
|
Flag to know if the column is readable. An empty col is not readable |
|
|
|
|
|
Display format |
|
Label of the column |
|
Unit of the data |
|
|
|
zero and scale are used when the quantity in the field does not represent a true physical quantity. Basically, thez should be used when they are present: physical_value = zero + scale * field_value They are read from TZERO and TSCAL in the header |