Definition at line 21 of file FitsFile.cc.
References AddColumn(), Error(), Time::Iso(), Time::NightAsInt(), PACKAGE_NAME, PACKAGE_VERSION, REVISION, str, and type.
Referenced by ~FitsFile().
29 WriteKey(
"TELESCOP",
"FACT",
"Telescope that acquired this data");
32 WriteKey(
"CREATOR", prgname,
"Program that wrote this file");
34 WriteKey(
"COMPILED", __DATE__
" " __TIME__,
"Compile time");
36 WriteKey(
"ORIGIN",
"FACT",
"Institution that wrote the file");
39 WriteKey(
"TIMESYS",
"UTC",
"Time system");
40 WriteKey(
"TIMEUNIT",
"d",
"Time given in days w.r.t. to MJDREF");
41 WriteKey(
"MJDREF", 40587,
"Store times in UNIX time (for convenience, seconds since 1970/1/1)");
46 catch (
const CCfits::FitsException &e)
48 Error(
"CCfits::Table::addKey failed for '"+
fTable->name()+
"' in '"+
fFile->name()+
"': "+e.message());
CCfits::Table * fTable
The pointer to the CCfits FITS file.
Adds some functionality to boost::posix_time::ptime for our needs.
uint32_t NightAsInt() const
void WriteKey(const string &name, const T &value, const string &comment)
int Error(const std::string &str)