Definition at line 52 of file fitscheck.cc.
References Configuration::DoParse(), Configuration::Get(), fits::GetNumRows(), Configuration::Has(), PrintHelp(), PrintUsage(), Configuration::SetPrintUsage(), and SetupConfiguration().
61 if (!conf.Has(
"fitsfile"))
63 cerr <<
"Filename required." << endl;
67 const string fname = conf.Get<
string>(
"fitsfile");
69 cout <<
"Reading '" << fname <<
"'.." << flush;
71 fits file(fname.c_str());
74 cout <<
"fits::open() failed: " << strerror(errno) <<
" [errno=" << errno <<
"]";
78 if (!file.IsHeaderOk())
80 cout <<
" header checksum could not be verified." << endl;
86 while (file.GetNextRow())
87 if (file.GetRow()<n && file.GetRow()%n==0)
92 cout <<
" data checksum could not be verified." << endl;
96 cout <<
" file ok." << endl;
void SetupConfiguration(Configuration &conf)
virtual size_t GetNumRows() const
Commandline parsing, resource file parsing and database access.