Definition at line 1029 of file ofits.h.
References AddColumnInt(), close(), fits::GetNextRow(), i, fits::IsFileOk(), fits::IsHeaderOk(), main, PACKAGE_NAME, PACKAGE_VERSION, REVISION, SetFloat(), SetInt(), SetStr(), str, time, WriteRow(), and WriteTableHeader().
1031 SetStr(
"TELESCOP",
"FACT",
"Telescope that acquired this data");
1032 SetStr(
"CREATOR",
typeid(*this).name(),
"Class that wrote this file");
1033 SetFloat(
"EXTREL", 1.0,
"Release Number");
1034 SetStr(
"COMPILED", __DATE__
" " __TIME__,
"Compile time");
1035 SetStr(
"ORIGIN",
"FACT",
"Institution that wrote the file");
1036 SetStr(
"TIMESYS",
"UTC",
"Time system");
1037 SetStr(
"TIMEUNIT",
"d",
"Time given in days w.r.t. to MJDREF");
1038 SetInt(
"MJDREF", 40587,
"MJD to UNIX time (seconds since 1970/1/1)");
1043 const time_t t0 =
time(NULL);
1044 const struct tm *tmp1 = gmtime(&t0);
1046 std::string
str(19,
'\0');
1047 if (tmp1 && strftime(const_cast<char*>(
str.data()), 20,
"%Y-%m-%dT%H:%M:%S", tmp1))
1048 SetStr(
"DATE",
str,
"File creation date");
bool SetInt(const std::string &key, int64_t i, const std::string &comment="")
bool SetStr(const std::string &key, std::string s, const std::string &comment="")
Warning because the service this data corrsponds to might have been last updated longer ago than Local time
bool SetFloat(const std::string &key, double f, int p, const std::string &comment="")