- Timestamp:
- Nov 27, 2019, 5:27:20 AM (7 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) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/dvomerge/include/dvomerge.h
r40805 r41152 31 31 int IMAGES_ONLY; 32 32 int ACCEPT_MOTION; 33 34 int ACCEPT_ASTROM; 33 35 int RETAIN_AVE_PHOTOMETRY; 36 34 37 char CATDIR[DVO_MAX_PATH]; 35 38 char GSCFILE[DVO_MAX_PATH]; -
trunk/Ohana/src/dvomerge/src/args.c
r40805 r41152 112 112 } 113 113 114 /* limit the impact of a dvomerge -parallel*/114 /* accept input database average astrometry motions */ 115 115 ACCEPT_MOTION = FALSE; 116 116 if ((N = get_argument (*argc, argv, "-accept-motion"))) { 117 117 remove_argument (N, argc, argv); 118 118 ACCEPT_MOTION = TRUE; 119 } 120 /* accept input database average astrometry information */ 121 ACCEPT_ASTROM = FALSE; 122 if ((N = get_argument (*argc, argv, "-accept-astrom"))) { 123 remove_argument (N, argc, argv); 124 ACCEPT_ASTROM = TRUE; 119 125 } 120 126 … … 337 343 } 338 344 339 /* limit the impact of a dvomerge -parallel*/345 /* accept input database average astrometry motions */ 340 346 ACCEPT_MOTION = FALSE; 341 347 if ((N = get_argument (*argc, argv, "-accept-motion"))) { 342 348 remove_argument (N, argc, argv); 343 349 ACCEPT_MOTION = TRUE; 350 } 351 /* accept input database average astrometry information */ 352 ACCEPT_ASTROM = FALSE; 353 if ((N = get_argument (*argc, argv, "-accept-astrom"))) { 354 remove_argument (N, argc, argv); 355 ACCEPT_ASTROM = TRUE; 344 356 } 345 357 -
trunk/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c
r40805 r41152 328 328 if (FORCE_MERGE) { strextend (&command, "-force-merge"); } 329 329 if (ACCEPT_MOTION) { strextend (&command, "-accept-motion"); } 330 if (ACCEPT_ASTROM) { strextend (&command, "-accept-astrom"); } 330 331 if (RETAIN_AVE_PHOTOMETRY) { strextend (&command, "-retain-ave-photometry"); } 331 332 if (MATCHED_TABLES) { strextend (&command, "-matched-tables"); } -
trunk/Ohana/src/dvomerge/src/merge_catalogs_old.c
r40805 r41152 363 363 } 364 364 365 // XXX: add choice of secfilt 365 366 // update the average properties to reflect the incoming entries: 366 367 // if RETAIN_AVE_PHOTOMETRY is true and the original value is NAN, but the input value is not, accept the input: … … 389 390 390 391 // we can choose to accept the proper-motion and parallax from the reference tgtcat 391 if (ACCEPT_MOTION ) {392 if (ACCEPT_MOTION || ACCEPT_ASTROM) { 392 393 output[0].average[n].dR = input[0].average[N].dR; 393 394 output[0].average[n].dD = input[0].average[N].dD; … … 400 401 output[0].average[n].Tmean = input[0].average[N].Tmean; 401 402 } 403 if (ACCEPT_ASTROM) { 404 output[0].average[n].R = input[0].average[N].R; 405 output[0].average[n].D = input[0].average[N].D; 406 } 402 407 403 408 /* Nm is updated, but not written out in -update mode (for existing entries) … … 461 466 462 467 // we can choose to accept the proper-motion and parallax from the reference tgtcat 463 if (ACCEPT_MOTION ) {468 if (ACCEPT_MOTION || ACCEPT_ASTROM) { 464 469 output[0].average[Nave].dR = input[0].average[N].dR; 465 470 output[0].average[Nave].dD = input[0].average[N].dD; … … 471 476 output[0].average[Nave].dP = input[0].average[N].dP; 472 477 output[0].average[Nave].Tmean = input[0].average[N].Tmean; 478 } 479 if (ACCEPT_ASTROM) { 480 output[0].average[Nave].R = input[0].average[N].R; 481 output[0].average[Nave].D = input[0].average[N].D; 473 482 } 474 483
Note:
See TracChangeset
for help on using the changeset viewer.
