- Timestamp:
- 10/17/13 16:46:24 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/ofits.h
r17224 r17240 984 984 return make_pair(checksum, atoi(datasum.c_str())); 985 985 } 986 987 void SetDefaultKeys() 988 { 989 SetStr("TELESCOP", "FACT", "Telescope that acquired this data"); 990 SetStr("CREATOR", typeid(*this).name(), "Class that wrote this file"); 991 SetFloat("EXTREL", 1.0, "Release Number"); 992 SetStr("COMPILED", __DATE__" "__TIME__, "Compile time"); 993 SetStr("ORIGIN", "FACT", "Institution that wrote the file"); 994 SetStr("TIMESYS", "UTC", "Time system"); 995 SetStr("TIMEUNIT", "d", "Time given in days w.r.t. to MJDREF"); 996 SetInt("MJDREF", 40587, "MJD to UNIX time (seconds since 1970/1/1)"); 997 SetStr("PACKAGE", PACKAGE_NAME, "Package name"); 998 SetStr("VERSION", PACKAGE_VERSION, "Package description"); 999 SetStr("REVISION", REVISION, "SVN revision"); 1000 1001 const time_t t0 = time(NULL); 1002 const struct tm *tmp1 = gmtime(&t0); 1003 1004 string str(21, '\0'); 1005 if (tmp1 && strftime(const_cast<char*>(str.data()), 20, "%Y-%m-%dT%H:%M:%S", tmp1)) 1006 SetStr("DATE", str, "File creation date"); 1007 } 986 1008 }; 987 1009
Note:
See TracChangeset
for help on using the changeset viewer.