Open a FITS file whose primary array represents a spectrum table (flux vs wavelength) and dump its columns.
void FITS_tutorial6()
{
printf("\n\n--------------------------------\n");
printf("WELCOME TO FITS tutorial #6 !!!!\n");
printf("--------------------------------\n");
printf("We are going to open a table from a FITS file\n");
printf("and dump its columns.\n\n");
if (hdu == 0) {
printf("ERROR: could not access the HDU\n"); return;
}
printf("The table has %d columns:\n", nColumns);
for (
Int_t i = 0; i < nColumns; i++) {
}
puts("");
delete hdu;
}
- Author
- Claudi Martinez
Definition in file FITS_tutorial6.C.