Changeset 34127 for branches/eam_branches/ipp-20120627/Ohana
- Timestamp:
- Jul 7, 2012, 9:25:02 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120627/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c
r33963 r34127 94 94 fclose (fout); 95 95 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 97 98 long long last_size; 98 99 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); 101 102 102 103 time_t last_mod = ohana_date_to_sec (last_moddate); … … 150 151 outcatalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 151 152 152 // update header of output catalog 153 # if (0) 154 // get the LMRG data from the previous pass 153 155 long long last_size; 154 156 char last_moddate[80]; … … 156 158 int status_date = gfits_scan (&outcatalog.header, "LMRG_DT", "%s", 1, last_moddate); 157 159 158 // save the previous size of merged entry160 // save the LMRG data from the previous pass 159 161 if (status_size && status_date) { 160 162 gfits_modify (&outcatalog.header, "LMRG_SZ1", "%lld", 1, (long long) last_size); … … 165 167 gfits_modify (&outcatalog.header, "LMRG_SZ", "%lld", 1, (long long) instats.st_size); 166 168 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); 167 175 168 176 if (!dvo_catalog_backup (&outcatalog, TRUE)) {
Note:
See TracChangeset
for help on using the changeset viewer.
