Open a FITS file and retrieve the first plane of the image array as a TImage object.
void FITS_tutorial3()
{
auto c =
new TCanvas(
"c1",
"FITS tutorial #1", 800, 700);
TFITSHDU hdu(dir +
"/fitsio/sample3.fits", i);
std::unique_ptr<TImage> im(hdu.ReadAsImage(0));
im->DrawClone();
}
}
A pseudo container class which is a generator of indices.
FITS file interface class.
- Author
- Claudi Martinez
Definition in file FITS_tutorial3.C.