IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38694


Ignore:
Timestamp:
Aug 31, 2015, 2:37:52 PM (11 years ago)
Author:
eugene
Message:

add header comments to setastrom to document the calibration steps

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150625/Ohana/src/uniphot/src/update_dvo_setastrom.c

    r38617 r38694  
    7474    if (VERBOSE) fprintf (stderr, "saving catalog %s\n", catalog.filename);
    7575   
     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
    7688    SetProtect (TRUE);
    7789    if (!dvo_catalog_save (&catalog, VERBOSE)) { fprintf (stderr, "ERROR: failed to save %s\n", catalog.filename); exit (1); }
Note: See TracChangeset for help on using the changeset viewer.