Open a FITS file whose primary array represents a spectrum (flux vs wavelength)
void FITS_tutorial2()
{
printf("\n\n--------------------------------\n");
printf("WELCOME TO FITS tutorial #2 !!!!\n");
printf("--------------------------------\n");
printf("We're gonna open a FITS file that contains the\n");
printf("primary HDU and a little data table.\n");
printf("The primary HDU is an array of 2 rows by 2040 columns, and\n");
printf("they represent a radiation spectrum. The first row contains\n");
printf("the flux data, whereas the second row the wavelengths.\n");
printf("Data copyright: NASA\n\n");
}
if (hdu == 0) {
printf("ERROR: could not access the HDU\n"); return;
}
printf("File successfully open!\n");
printf("....................................\n");
printf("We are going to generate a TGraph from vectors\n");
delete hdu;
}
- Author
- Claudi Martinez
Definition in file FITS_tutorial2.C.