Changeset 35720
- Timestamp:
- Jun 28, 2013, 1:59:30 PM (13 years ago)
- Location:
- branches/eam_branches/ipp-20130509/Ohana/src/dvomerge
- Files:
-
- 3 edited
-
include/dvomerge.h (modified) (1 diff)
-
src/args.c (modified) (2 diffs)
-
src/dvomergeUpdate_catalogs.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/include/dvomerge.h
r35699 r35720 40 40 char *ALTERNATE_PHOTCODE_FILE; 41 41 int REPLACE_BY_PHOTCODE; 42 int FORCE_MERGE; 42 43 43 44 char *SINGLE_CPT; -
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/args.c
r35699 r35720 41 41 remove_argument (N, argc, argv); 42 42 ALTERNATE_PHOTCODE_FILE = strcreate(argv[N]); 43 remove_argument (N, argc, argv); 44 } 45 46 // merge even if header claims db has already been merged 47 FORCE_MERGE = FALSE; 48 if ((N = get_argument (*argc, argv, "-force-merge"))) { 49 FORCE_MERGE = TRUE; 43 50 remove_argument (N, argc, argv); 44 51 } … … 171 178 } 172 179 180 // merge even if header claims db has already been merged 181 FORCE_MERGE = FALSE; 182 if ((N = get_argument (*argc, argv, "-force-merge"))) { 183 FORCE_MERGE = TRUE; 184 remove_argument (N, argc, argv); 185 } 186 173 187 /* replace measurement, don't duplicate */ 174 188 REPLACE_BY_PHOTCODE = FALSE; -
branches/eam_branches/ipp-20130509/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c
r35705 r35720 109 109 missed = (missed || outstat[j].missed); 110 110 } 111 if (! missed) {111 if (!FORCE_MERGE && !missed) { 112 112 if (VERBOSE || VERIFY) fprintf (stderr, "skipping %s, already merged\n", filename_input); 113 113 OutputStatusFree (outstat, outlist->Nregions); … … 146 146 147 147 // skip if we have already done the merge 148 if (! outstat[j].missed) continue;148 if (!FORCE_MERGE && !outstat[j].missed) continue; 149 149 150 150 if (VERBOSE) fprintf (stderr, "output : %s\n", outlist[0].regions[j][0].name); … … 161 161 outcatalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF; 162 162 163 dmhObjectAdd (outstat[j].history, &outcatalog.header, inStats); 163 if (outstat[i].missed) { 164 dmhObjectAdd (outstat[j].history, &outcatalog.header, inStats); 165 } 164 166 165 167 if (!dvo_catalog_backup (&outcatalog, TRUE)) { … … 239 241 240 242 char tmpline[DVO_MAX_PATH]; 241 if (VERBOSE) { snprintf (tmpline, DVO_MAX_PATH, "%s -v", command); strcpy (command, tmpline); } 242 if (VERIFY) { snprintf (tmpline, DVO_MAX_PATH, "%s -verify", command); strcpy (command, tmpline); } 243 if (VERIFY_CATALOG_ONLY) { snprintf (tmpline, DVO_MAX_PATH, "%s -verify-catalogs", command); strcpy (command, tmpline); } 244 if (REPLACE_BY_PHOTCODE) { snprintf (tmpline, DVO_MAX_PATH, "%s -replace", command); strcpy (command, tmpline); } 245 if (PARALLEL_INPUT) { snprintf (tmpline, DVO_MAX_PATH, "%s -parallel-input", command); strcpy (command, tmpline); } 243 if (VERBOSE) { snprintf (tmpline, DVO_MAX_PATH, "%s -v", command); strcpy (command, tmpline); } 244 if (VERIFY) { snprintf (tmpline, DVO_MAX_PATH, "%s -verify", command); strcpy (command, tmpline); } 245 if (VERIFY_CATALOG_ONLY) { snprintf (tmpline, DVO_MAX_PATH, "%s -verify-catalogs", command); strcpy (command, tmpline); } 246 if (REPLACE_BY_PHOTCODE) { snprintf (tmpline, DVO_MAX_PATH, "%s -replace", command); strcpy (command, tmpline); } 247 if (PARALLEL_INPUT) { snprintf (tmpline, DVO_MAX_PATH, "%s -parallel-input", command); strcpy (command, tmpline); } 248 if (FORCE_MERGE) { snprintf (tmpline, DVO_MAX_PATH, "%s -force-merge", command); strcpy (command, tmpline); } 246 249 247 250 fprintf (stderr, "command: %s\n", command);
Note:
See TracChangeset
for help on using the changeset viewer.
