23 TFITSHDU hdu(dir +
"/fitsio/sample1.fits");
32 printf(
"Exposure time = %s\n", hdu.GetKeywordValue(
"EXPTIME").Data());
37 std::unique_ptr<TMatrixD> mat(hdu.ReadAsMatrix(0));
42 std::unique_ptr<TImage> im(hdu.ReadAsImage(0));
46 std::unique_ptr<TH1> hist(hdu.ReadAsHistogram());
48 auto c =
new TCanvas(
"c1",
"FITS tutorial #1", 1400, 800);
53 hist->DrawClone(
"COL");
FITS file interface class.