Index: trunk/Mars/mcore/ofits.h
===================================================================
--- trunk/Mars/mcore/ofits.h	(revision 17239)
+++ trunk/Mars/mcore/ofits.h	(revision 17240)
@@ -984,4 +984,26 @@
         return make_pair(checksum, atoi(datasum.c_str()));
     }
+
+    void SetDefaultKeys()
+    {
+        SetStr("TELESCOP", "FACT", "Telescope that acquired this data");
+        SetStr("CREATOR", typeid(*this).name(), "Class that wrote this file");
+        SetFloat("EXTREL", 1.0, "Release Number");
+        SetStr("COMPILED", __DATE__" "__TIME__, "Compile time");
+        SetStr("ORIGIN", "FACT", "Institution that wrote the file");
+        SetStr("TIMESYS", "UTC", "Time system");
+        SetStr("TIMEUNIT", "d", "Time given in days w.r.t. to MJDREF");
+        SetInt("MJDREF", 40587, "MJD to UNIX time (seconds since 1970/1/1)");
+        SetStr("PACKAGE", PACKAGE_NAME, "Package name");
+        SetStr("VERSION", PACKAGE_VERSION, "Package description");
+        SetStr("REVISION", REVISION, "SVN revision");
+
+        const time_t t0 = time(NULL);
+        const struct tm *tmp1 = gmtime(&t0);
+
+        string str(21, '\0');
+        if (tmp1 && strftime(const_cast<char*>(str.data()), 20, "%Y-%m-%dT%H:%M:%S", tmp1))
+            SetStr("DATE", str, "File creation date");
+    }
 };
 
