Changeset 38651
- Timestamp:
- Jul 30, 2015, 5:11:38 PM (11 years ago)
- Location:
- branches/eam_branches/ipp-20150625/Ohana/src/dvomerge
- Files:
-
- 1 added
- 6 edited
-
Makefile (modified) (2 diffs)
-
include/dvomerge.h (modified) (2 diffs)
-
src/args.c (modified) (2 diffs)
-
src/dvomergeUpdate_catalogs.c (modified) (2 diffs)
-
src/dvomerge_client.c (modified) (1 diff)
-
src/repair_catalog_by_objID.c (added)
-
src/replace_tycho.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/Makefile
r38622 r38651 51 51 $(SRC)/replace_match.$(ARCH).o \ 52 52 $(SRC)/replace_tycho.$(ARCH).o \ 53 $(SRC)/repair_catalog_by_objID.$(ARCH).o \ 53 54 $(SRC)/merge_catalogs_new.$(ARCH).o \ 54 55 $(SRC)/merge_catalogs_old.$(ARCH).o … … 75 76 $(SRC)/replace_match.$(ARCH).o \ 76 77 $(SRC)/replace_tycho.$(ARCH).o \ 78 $(SRC)/repair_catalog_by_objID.$(ARCH).o \ 77 79 $(SRC)/merge_catalogs_new.$(ARCH).o \ 78 80 $(SRC)/merge_catalogs_old.$(ARCH).o -
branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/include/dvomerge.h
r38648 r38651 47 47 48 48 int MATCHED_TABLES; 49 int REPAIR_BY_OBJID; 49 50 50 51 char *SINGLE_CPT; … … 242 243 void replace_tycho_init (); 243 244 int replace_tycho (Average *averageInp, Measure *measureInp, off_t *next_meas, Average *averageOut, Measure *measureOut); 245 int repair_catalog_by_objID (Catalog *catalog); -
branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/args.c
r38553 r38651 94 94 if ((N = get_argument (*argc, argv, "-replace-tycho"))) { 95 95 REPLACE_TYCHO = TRUE; 96 remove_argument (N, argc, argv); 97 } 98 99 REPAIR_BY_OBJID = FALSE; 100 if ((N = get_argument (*argc, argv, "-repair-by-objid"))) { 101 REPAIR_BY_OBJID = TRUE; 96 102 remove_argument (N, argc, argv); 97 103 } … … 266 272 } 267 273 274 REPAIR_BY_OBJID = FALSE; 275 if ((N = get_argument (*argc, argv, "-repair-by-objid"))) { 276 REPAIR_BY_OBJID = TRUE; 277 remove_argument (N, argc, argv); 278 } 279 268 280 NTHREADS = 0; 269 281 if ((N = get_argument (*argc, argv, "-threads"))) { -
branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c
r38622 r38651 193 193 outcatalog.catcompress = incatalog.catcompress; 194 194 } 195 } 196 197 if (REPAIR_BY_OBJID) { 198 // For gpc1 / PV3, I broke some catalogs with dvomerge -replace: the last object can 199 // contaminate the first set of new measurements 200 repair_catalog_by_objID (&outcatalog); 195 201 } 196 202 … … 296 302 if (UPDATE_CATFORMAT) { strextend (&command, "-update-catformat %s", UPDATE_CATFORMAT); } 297 303 if (UPDATE_CATCOMPRESS) { strextend (&command, "-update-catcompress %s", UPDATE_CATCOMPRESS); } 304 if (REPAIR_BY_OBJID) { strextend (&command, "-repair-by-objid"); } 298 305 299 306 // add some config variables: -
branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/dvomerge_client.c
r38648 r38651 84 84 // loop over the populatable output tables; check for data in input in the corresponding regions 85 85 86 SetPhotcodeTable(NULL);87 88 86 if (REPLACE_TYCHO) replace_tycho_init(); 89 87 -
branches/eam_branches/ipp-20150625/Ohana/src/dvomerge/src/replace_tycho.c
r38648 r38651 28 28 valid = valid || (measureOut[m].photcode == TYCHO_V); 29 29 if (valid) { 30 index[Nindex] = i;30 index[Nindex] = m; 31 31 Nindex ++; 32 32 }
Note:
See TracChangeset
for help on using the changeset viewer.
