Index: /branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_dvo_setastrom.c
===================================================================
--- /branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_dvo_setastrom.c	(revision 38693)
+++ /branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_dvo_setastrom.c	(revision 38694)
@@ -74,4 +74,16 @@
     if (VERBOSE) fprintf (stderr, "saving catalog %s\n", catalog.filename);
     
+    struct timeval now;
+    gettimeofday (&now, (void *) NULL);
+    char *moddate = ohana_sec_to_date (now.tv_sec);
+    gfits_modify (&catalog.header, "SETASTR", "%s", 1, moddate); // replaces the single entry
+
+    char history[128];
+    snprintf (history, 128, "setastrom applied: %s", moddate);
+    gfits_modify_alt (&catalog.header, "HISTORY", "%S", 0, history); // adds a new entry
+
+    snprintf (history, 128, "setastrom options: KH: %1d, DCR: %1d, CAM: %1d", (KH_FILE != NULL), (DCR_FILE != NULL), (CAM_FILE != NULL));
+    gfits_modify_alt (&catalog.header, "HISTORY", "%S", 0, history); // adds a new entry
+
     SetProtect (TRUE);
     if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); }
