- Timestamp:
- Feb 11, 2016, 11:32:04 AM (10 years ago)
- Location:
- trunk/Ohana/src/dvomerge
- Files:
-
- 5 edited
-
include/dvomerge.h (modified) (1 diff)
-
src/args.c (modified) (2 diffs)
-
src/dvomergeUpdate_catalogs.c (modified) (1 diff)
-
src/dvorepairDeleteImagesByExternID_v2.c (modified) (1 diff)
-
src/merge_catalogs_old.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/dvomerge/include/dvomerge.h
r39334 r39342 30 30 int VERIFY_CATALOG_ONLY; 31 31 int IMAGES_ONLY; 32 int ACCEPT_MOTION; 32 33 char CATDIR[DVO_MAX_PATH]; 33 34 char GSCFILE[DVO_MAX_PATH]; -
trunk/Ohana/src/dvomerge/src/args.c
r39334 r39342 88 88 remove_argument (N, argc, argv); 89 89 MAX_CLIENTS = atoi(argv[N]); 90 remove_argument (N, argc, argv); 91 } 92 93 /* limit the impact of a dvomerge -parallel */ 94 ACCEPT_MOTION = FALSE; 95 if ((N = get_argument (*argc, argv, "-accept-motion"))) { 96 remove_argument (N, argc, argv); 97 ACCEPT_MOTION = TRUE; 90 98 remove_argument (N, argc, argv); 91 99 } … … 299 307 } 300 308 309 /* limit the impact of a dvomerge -parallel */ 310 ACCEPT_MOTION = FALSE; 311 if ((N = get_argument (*argc, argv, "-accept-motion"))) { 312 remove_argument (N, argc, argv); 313 ACCEPT_MOTION = TRUE; 314 remove_argument (N, argc, argv); 315 } 316 301 317 /* extra error messages */ 302 318 MATCHED_TABLES = FALSE; -
trunk/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c
r39340 r39342 316 316 UserPatch.Rmin, UserPatch.Rmax, UserPatch.Dmin, UserPatch.Dmax, RADIUS); 317 317 318 if (VERBOSE) { strextend (&command, "-v"); } 319 if (VERIFY) { strextend (&command, "-verify"); } 320 if (VERIFY_CATALOG_ONLY) { strextend (&command, "-verify-catalogs"); } 321 if (REPLACE_BY_PHOTCODE) { strextend (&command, "-replace"); } 322 if (REPLACE_TYCHO) { strextend (&command, "-replace-tycho"); } 323 if (PARALLEL_INPUT) { strextend (&command, "-parallel-input"); } 324 if (FORCE_MERGE) { strextend (&command, "-force-merge"); } 325 if (MATCHED_TABLES) { strextend (&command, "-matched-tables"); } 326 if (MATCH_BY_EXTERN_ID) { strextend (&command, "-match-by-extern-id"); } 318 if (VERBOSE) { strextend (&command, "-v"); } 319 if (VERIFY) { strextend (&command, "-verify"); } 320 if (VERIFY_CATALOG_ONLY) { strextend (&command, "-verify-catalogs"); } 321 if (REPLACE_BY_PHOTCODE) { strextend (&command, "-replace"); } 322 if (REPLACE_TYCHO) { strextend (&command, "-replace-tycho"); } 323 if (PARALLEL_INPUT) { strextend (&command, "-parallel-input"); } 324 if (FORCE_MERGE) { strextend (&command, "-force-merge"); } 325 if (ACCEPT_MOTION) { strextend (&command, "-accept-motion"); } 326 if (MATCHED_TABLES) { strextend (&command, "-matched-tables"); } 327 if (MATCH_BY_EXTERN_ID) { strextend (&command, "-match-by-extern-id"); } 328 if (UPDATE_CATFORMAT) { strextend (&command, "-update-catformat %s", UPDATE_CATFORMAT); } 329 if (UPDATE_CATCOMPRESS) { strextend (&command, "-update-catcompress %s", UPDATE_CATCOMPRESS); } 330 if (CPTLIST_FILENAME) { strextend (&command, "-restrict-cpt %s", CPTLIST_FILENAME); } 331 if (REPAIR_BY_OBJID) { strextend (&command, "-repair-by-objid"); } 327 332 328 333 if (SKIP_MEASURE) { strextend (&command, "-skip-measure"); } -
trunk/Ohana/src/dvomerge/src/dvorepairDeleteImagesByExternID_v2.c
r39323 r39342 1 1 # include "dvorepair.h" 2 3 // dvorepairDeleteImagesByExternID and dvorepairDeleteImagesByExternID_v2 differ in only 2 4 // ways: 5 // 1) _v2 does NOT attempt to delete detections 6 // 2) _v2 uses the 2nd word on each line in the externID list and requires 3 words per 7 // line, while the other version requires 9 words per line (and also uses the 2nd word) 2 8 3 9 // delete images based on a text table of the target IDs -
trunk/Ohana/src/dvomerge/src/merge_catalogs_old.c
r39334 r39342 358 358 } 359 359 360 // we can choose to accept the proper-motion and parallax from the reference tgtcat 361 if (ACCEPT_MOTION) { 362 output[0].average[Nave].dR = input[0].average[N].dR; 363 output[0].average[Nave].dD = input[0].average[N].dD; 364 output[0].average[Nave].uR = input[0].average[N].uR; 365 output[0].average[Nave].uD = input[0].average[N].uD; 366 output[0].average[Nave].duR = input[0].average[N].duR; 367 output[0].average[Nave].duD = input[0].average[N].duD; 368 output[0].average[Nave].P = input[0].average[N].P; 369 output[0].average[Nave].dP = input[0].average[N].dP; 370 output[0].average[Nave].Tmean = input[0].average[N].Tmean; 371 } 372 360 373 /* Nm is updated, but not written out in -update mode (for existing entries) 361 374 Nm is recalculated in build_meas_links if loaded table is not sorted */ … … 411 424 output[0].average[Nave].objID = objID; // we create objID values in the context of the output db 412 425 output[0].average[Nave].catID = catID; // we create catID values in the context of the output db 426 427 // we can choose to accept the proper-motion and parallax from the reference tgtcat 428 if (ACCEPT_MOTION) { 429 output[0].average[Nave].dR = input[0].average[N].dR; 430 output[0].average[Nave].dD = input[0].average[N].dD; 431 output[0].average[Nave].uR = input[0].average[N].uR; 432 output[0].average[Nave].uD = input[0].average[N].uD; 433 output[0].average[Nave].duR = input[0].average[N].duR; 434 output[0].average[Nave].duD = input[0].average[N].duD; 435 output[0].average[Nave].P = input[0].average[N].P; 436 output[0].average[Nave].dP = input[0].average[N].dP; 437 output[0].average[Nave].Tmean = input[0].average[N].Tmean; 438 } 413 439 414 440 if (PSPS_ID) {
Note:
See TracChangeset
for help on using the changeset viewer.
