Changeset 41340 for trunk/Ohana/src/dvomerge
- Timestamp:
- Apr 16, 2020, 1:54:47 PM (6 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
r41152 r41340 31 31 int IMAGES_ONLY; 32 32 int ACCEPT_MOTION; 33 34 int ACCEPT_ASTROM;35 33 int RETAIN_AVE_PHOTOMETRY; 36 37 34 char CATDIR[DVO_MAX_PATH]; 38 35 char GSCFILE[DVO_MAX_PATH]; -
trunk/Ohana/src/dvomerge/src/args.c
r41152 r41340 112 112 } 113 113 114 /* accept input database average astrometry motions*/114 /* limit the impact of a dvomerge -parallel */ 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;125 119 } 126 120 … … 343 337 } 344 338 345 /* accept input database average astrometry motions*/339 /* limit the impact of a dvomerge -parallel */ 346 340 ACCEPT_MOTION = FALSE; 347 341 if ((N = get_argument (*argc, argv, "-accept-motion"))) { 348 342 remove_argument (N, argc, argv); 349 343 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;356 344 } 357 345 -
trunk/Ohana/src/dvomerge/src/dvomergeUpdate_catalogs.c
r41152 r41340 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"); }331 330 if (RETAIN_AVE_PHOTOMETRY) { strextend (&command, "-retain-ave-photometry"); } 332 331 if (MATCHED_TABLES) { strextend (&command, "-matched-tables"); } -
trunk/Ohana/src/dvomerge/src/merge_catalogs_old.c
r41152 r41340 363 363 } 364 364 365 // XXX: add choice of secfilt366 365 // update the average properties to reflect the incoming entries: 367 366 // if RETAIN_AVE_PHOTOMETRY is true and the original value is NAN, but the input value is not, accept the input: … … 390 389 391 390 // we can choose to accept the proper-motion and parallax from the reference tgtcat 392 if (ACCEPT_MOTION || ACCEPT_ASTROM) {391 if (ACCEPT_MOTION) { 393 392 output[0].average[n].dR = input[0].average[N].dR; 394 393 output[0].average[n].dD = input[0].average[N].dD; … … 401 400 output[0].average[n].Tmean = input[0].average[N].Tmean; 402 401 } 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 }407 402 408 403 /* Nm is updated, but not written out in -update mode (for existing entries) … … 466 461 467 462 // we can choose to accept the proper-motion and parallax from the reference tgtcat 468 if (ACCEPT_MOTION || ACCEPT_ASTROM) {463 if (ACCEPT_MOTION) { 469 464 output[0].average[Nave].dR = input[0].average[N].dR; 470 465 output[0].average[Nave].dD = input[0].average[N].dD; … … 476 471 output[0].average[Nave].dP = input[0].average[N].dP; 477 472 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;482 473 } 483 474
Note:
See TracChangeset
for help on using the changeset viewer.
