- Timestamp:
- Mar 26, 2018, 1:03:28 PM (8 years ago)
- Location:
- trunk/Ohana/src/dvomerge
- Files:
-
- 4 edited
-
include/dvomerge.h (modified) (1 diff)
-
src/args.c (modified) (2 diffs)
-
src/dvomergeUpdate_catalogs.c (modified) (1 diff)
-
src/merge_catalogs_old.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/dvomerge/include/dvomerge.h
r39926 r40377 55 55 int MATCH_BY_EXTERN_ID; 56 56 57 int ONLY_MATCHES; 58 57 59 int MATCHED_TABLES; 58 60 int RESET_STARPAR; -
trunk/Ohana/src/dvomerge/src/args.c
r39926 r40377 86 86 } 87 87 88 /* extra error messages*/88 /* match images in the src and tgt database tables by their externID values (otherwise by time and photcode) */ 89 89 MATCH_BY_EXTERN_ID = FALSE; 90 90 if ((N = get_argument (*argc, argv, "-match-by-extern-id"))) { 91 91 MATCH_BY_EXTERN_ID = TRUE; 92 remove_argument (N, argc, argv); 93 } 94 /* add objects from input to output database only if they match an existing object */ 95 ONLY_MATCHES = FALSE; 96 if ((N = get_argument (*argc, argv, "-only-matches"))) { 97 ONLY_MATCHES = TRUE; 92 98 remove_argument (N, argc, argv); 93 99 } … … 373 379 } 374 380 375 /* extra error messages*/381 /* match images in the src and tgt database tables by their externID values (otherwise by time and photcode) */ 376 382 MATCH_BY_EXTERN_ID = FALSE; 377 383 if ((N = get_argument (*argc, argv, "-match-by-extern-id"))) { 378 384 MATCH_BY_EXTERN_ID = TRUE; 385 remove_argument (N, argc, argv); 386 } 387 /* add objects from input to output database only if they match an existing object */ 388 ONLY_MATCHES = FALSE; 389 if ((N = get_argument (*argc, argv, "-only-matches"))) { 390 ONLY_MATCHES = TRUE; 379 391 remove_argument (N, argc, argv); 380 392 } -
trunk/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c
r39926 r40377 330 330 if (MATCHED_TABLES) { strextend (&command, "-matched-tables"); } 331 331 if (MATCH_BY_EXTERN_ID) { strextend (&command, "-match-by-extern-id"); } 332 if (ONLY_MATCHES) { strextend (&command, "-only-matches"); } 332 333 if (UPDATE_CATFORMAT) { strextend (&command, "-update-catformat %s", UPDATE_CATFORMAT); } 333 334 if (UPDATE_CATCOMPRESS) { strextend (&command, "-update-catcompress %s", UPDATE_CATCOMPRESS); } -
trunk/Ohana/src/dvomerge/src/merge_catalogs_old.c
r40291 r40377 406 406 /** incorporate unmatched image stars, if this star is in field of this catalog **/ 407 407 /* these new entries are all written out in UPDATE mode */ 408 for (i = 0; i < Nstars; i++) {408 for (i = 0; (i < Nstars) && !ONLY_MATCHES; i++) { 409 409 off_t N = N1[i]; 410 410
Note:
See TracChangeset
for help on using the changeset viewer.
