Open a FITS file and retrieve the first plane of the image array as a TImage object.
void FITS_tutorial3()
{
printf("\n\n--------------------------------\n");
printf("WELCOME TO FITS tutorial #3 !!!!\n");
printf("--------------------------------\n");
printf("We're gonna open a FITS file that contains several image\n");
printf("extensions. The primary HDU contains no data.\n");
printf("Data copyright: NASA\n\n");
}
for (int i=1; i <= 5; i++) {
if (hdu == 0) {
printf("ERROR: could not access the HDU\n"); return;
}
delete hdu;
}
}
- Author
- Claudi Martinez
Definition in file FITS_tutorial3.C.