12 printf(
"\n\n--------------------------------\n");
13 printf(
"WELCOME TO FITS tutorial #4 !!!!\n");
14 printf(
"--------------------------------\n");
15 printf(
"We're gonna open a FITS file that contains the\n");
16 printf(
"primary HDU and a little data table.\n");
17 printf(
"The data table is extension #1 and it has 2 rows.\n");
18 printf(
"We want to read only the rows that have the column\n");
19 printf(
"named DATAMAX greater than 2e-15 (there's only 1\n");
20 printf(
"matching row)\n");
21 printf(
"Data copyright: NASA\n\n");
23 if (!
gROOT->IsBatch()) {
31 printf(
"ERROR: could not access the HDU\n");
return;
36 printf(
"\n\n........................................\n");
37 printf(
"Press ENTER to see full table contents (maybe you should resize\n");
41 printf(
"\n\n........................................\n");
44 printf(
"%lg\n", (*v)[0]);
47 printf(
"Does the matched row have DATAMAX > 2e-15? :-)\n");
virtual const char * DirName(const char *pathname)
Return the directory name in pathname.
void Print(const Option_t *opt="") const
Print metadata.
FITS file interface class.
R__EXTERN TSystem * gSystem
TVectorD * GetTabRealVectorColumn(Int_t colnum)
Get a real number-typed column from a table HDU given its column index (>=0).