12 printf(
"\n\n--------------------------------\n");
13 printf(
"WELCOME TO FITS tutorial #3 !!!!\n");
14 printf(
"--------------------------------\n");
15 printf(
"We're gonna open a FITS file that contains several image\n");
16 printf(
"extensions. The primary HDU contains no data.\n");
17 printf(
"Data copyright: NASA\n\n");
19 if (!
gROOT->IsBatch()) {
29 for (
int i=1; i <= 5; i++) {
32 printf(
"ERROR: could not access the HDU\n");
return;
TVirtualPad * cd(Int_t subpadnumber=0)
Set current canvas & pad.
virtual const char * DirName(const char *pathname)
Return the directory name in pathname.
virtual void Draw(Option_t *option="")
Default Draw method for all objects.
An abstract interface to image processing library.
FITS file interface class.
R__EXTERN TSystem * gSystem
virtual void Divide(Int_t nx=1, Int_t ny=1, Float_t xmargin=0.01, Float_t ymargin=0.01, Int_t color=0)
Automatic pad generation by division.
TImage * ReadAsImage(Int_t layer=0, TImagePalette *pal=0)
Read image HDU as a displayable image.