Changeset 38986 for trunk/Ohana/src/uniphot/src/update_dvo_setastrom.c
- Timestamp:
- Oct 27, 2015, 4:49:06 PM (11 years ago)
- Location:
- trunk/Ohana
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/uniphot/src/update_dvo_setastrom.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana
-
Property svn:mergeinfo
set to
/branches/eam_branches/ipp-20150625/Ohana merged eligible
-
Property svn:mergeinfo
set to
-
trunk/Ohana/src/uniphot/src/update_dvo_setastrom.c
r38471 r38986 1 1 # include "setastrom.h" 2 2 3 int update_dvo_setastrom ( ) {3 int update_dvo_setastrom (void) { 4 4 5 5 SkyTable *sky = NULL; … … 74 74 if (VERBOSE) fprintf (stderr, "saving catalog %s\n", catalog.filename); 75 75 76 dvo_catalog_save (&catalog, VERBOSE); 77 dvo_catalog_unlock (&catalog); 76 struct timeval now; 77 gettimeofday (&now, (void *) NULL); 78 char *moddate = ohana_sec_to_date (now.tv_sec); 79 gfits_modify (&catalog.header, "SETASTR", "%s", 1, moddate); // replaces the single entry 80 81 char history[128]; 82 snprintf (history, 128, "setastrom applied: %s", moddate); 83 gfits_modify_alt (&catalog.header, "HISTORY", "%S", 0, history); // adds a new entry 84 85 snprintf (history, 128, "setastrom options: KH: %1d, DCR: %1d, CAM: %1d", (KH_FILE != NULL), (DCR_FILE != NULL), (CAM_FILE != NULL)); 86 gfits_modify_alt (&catalog.header, "HISTORY", "%S", 0, history); // adds a new entry 87 88 SetProtect (TRUE); 89 if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); } 90 if (!dvo_catalog_unlock (&catalog)) { fprintf (stderr, "ERROR: failed to unlock %s\n", catalog.filename); exit (1); } 91 SetProtect (FALSE); 78 92 dvo_catalog_free (&catalog); 79 93 }
Note:
See TracChangeset
for help on using the changeset viewer.
