IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 7, 2012, 9:25:02 PM (14 years ago)
Author:
eugene
Message:

temporarily save last-merge for this run in LMRG_*2; ignore * and *1; need to fix this concept...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120627/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c

    r33963 r34127  
    9494      fclose (fout);
    9595
    96       // update header of output catalog
     96      // XXX note that we are hardwired to v 2
     97      // check the header of output catalog for an existing merge
    9798      long long last_size;
    9899      char last_moddate[80];
    99       gfits_scan (&outheader, "LMRG_SZ", "%lld", 1, &last_size);     
    100       gfits_scan (&outheader, "LMRG_DT", "%s", 1, last_moddate);     
     100      gfits_scan (&outheader, "LMRG_SZ2", "%lld", 1, &last_size);     
     101      gfits_scan (&outheader, "LMRG_DT2", "%s", 1, last_moddate);     
    101102
    102103      time_t last_mod = ohana_date_to_sec (last_moddate);
     
    150151      outcatalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
    151152
    152       // update header of output catalog
     153# if (0)
     154      // get the LMRG data from the previous pass
    153155      long long last_size;
    154156      char last_moddate[80];
     
    156158      int status_date = gfits_scan (&outcatalog.header, "LMRG_DT", "%s", 1, last_moddate);     
    157159
    158       // save the previous size of merged entry
     160      // save the LMRG data from the previous pass
    159161      if (status_size && status_date) {
    160162        gfits_modify (&outcatalog.header, "LMRG_SZ1", "%lld", 1, (long long) last_size);     
     
    165167      gfits_modify (&outcatalog.header, "LMRG_SZ", "%lld", 1, (long long) instats.st_size);     
    166168      gfits_modify (&outcatalog.header, "LMRG_DT", "%s", 1, moddate);     
     169# endif
     170
     171      // update header of output catalog
     172      // XXX note that we are hardwired to v 2
     173      gfits_modify (&outcatalog.header, "LMRG_SZ2", "%lld", 1, (long long) instats.st_size);     
     174      gfits_modify (&outcatalog.header, "LMRG_DT2", "%s", 1, moddate);     
    167175
    168176      if (!dvo_catalog_backup (&outcatalog, TRUE)) {
Note: See TracChangeset for help on using the changeset viewer.