#include <qfits.h>
Data Fields | |
| char | filename [FILENAMESZ] |
| int | tab_t |
| int | tab_w |
| int | nc |
| int | nr |
| qfits_col* | col |
This structure contains all information needed to read a FITS table. These information come from the header. The object is created by qfits_open().
To read a FITS table, here is a code example:
int main(int argc, char* argv[])
{
qfits_table * table ;
int n_ext ;
int i ;
// Query the number of extensions
n_ext = qfits_query_n_ext(argv[1]) ;
// For each extension
for (i=0 ; i<n_ext ; i++) {
// Read all the infos about the current table
table = qfits_table_open(argv[1], i+1) ;
// Display the current table
dump_extension(table, stdout, '|', 1, 1) ;
}
return ;
}
|
|
Array of qfits_col objects |
|
|
Name of the file the table comes from or it is intended to end to |
|
|
Number of columns |
|
|
Number of raws |
|
|
Table type. Possible values: QFITS_INVALIDTABLE, QFITS_BINTABLE, QFITS_ASCIITABLE |
|
|
Width in bytes of the table |