13 printf(
"\n\n--------------------------------\n");
14 printf(
"WELCOME TO FITS tutorial #2 !!!!\n");
15 printf(
"--------------------------------\n");
16 printf(
"We're gonna open a FITS file that contains the\n");
17 printf(
"primary HDU and a little data table.\n");
18 printf(
"The primary HDU is an array of 2 rows by 2040 columns, and\n");
19 printf(
"they represent a radiation spectrum. The first row contains\n");
20 printf(
"the flux data, whereas the second row the wavelengths.\n");
21 printf(
"Data copyright: NASA\n\n");
23 if (!
gROOT->IsBatch()) {
31 printf(
"ERROR: could not access the HDU\n");
return;
33 printf(
"File successfully open!\n");
41 printf(
"....................................\n");
42 printf(
"We are going to generate a TGraph from vectors\n");
virtual const char * DirName(const char *pathname)
Return the directory name in pathname.
virtual void Draw(Option_t *chopt="")
Draw this graph with its current attributes.
void Print(const Option_t *opt="") const
Print metadata.
FITS file interface class.
TVectorD * GetArrayRow(UInt_t row)
Get a row from the image HDU when it's a 2D array.
R__EXTERN TSystem * gSystem
A Graph is a graphics object made of two arrays X and Y with npoints each.