- Timestamp:
- Feb 21, 2016, 5:58:10 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/relphot/src/setMrelCatalog.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relphot/src/setMrelCatalog.c
r39325 r39362 538 538 haveStackObject = TRUE; 539 539 540 // find the PRIMARY measurement540 // ** find the PRIMARY measurement 541 541 542 542 // if we request the primary (USE_TREE_FOR_PRIMARY), this is true if the measurement is from the … … 549 549 } 550 550 551 // now choose the BEST measurements (may also be PRIMARY) 551 // ** now choose the BEST measurements (may also be PRIMARY) 552 553 // ensure that we at least have a single best measure 554 if (stackBestMeasure == -1) stackBestMeasure = k; 555 556 // choose the best psfQFperf value for the BEST measurement 557 if (isfinite(measure[k].psfQFperf) && (measure[k].psfQFperf > psfQFbest)) { 558 psfQFbest = measure[k].psfQFperf; 559 stackBestMeasure = k; 560 } 561 // ... UNLESS psfQFperf > 0.98 for the primary, in which case just use the primary. 562 if ((measure[k].dbFlags & ID_MEAS_STACK_PRIMARY) && isfinite(measure[k].psfQFperf) && (measure[k].psfQFperf > 0.98)) { 563 psfQFbest = 1000; // force this to be the best entry 564 stackBestMeasure = k; 565 } 552 566 553 567 if (measure[k].dbFlags & MEAS_BAD) SKIP_THIS_MEAS_STACK(Nbad); … … 577 591 if (isnan(Finst)) SKIP_THIS_MEAS_STACK(Ninst); 578 592 579 // choose the best psfQFperf value for the BEST measurement580 if (measure[k].psfQFperf > psfQFbest) {581 psfQFbest = measure[k].psfQFperf;582 stackBestMeasure = k;583 }584 // ... UNLESS psfQFperf > 0.98 for the primary, in which case just use the primary.585 if ((measure[k].dbFlags & ID_MEAS_STACK_PRIMARY) && (measure[k].psfQFperf > 0.98)) {586 stackBestMeasure = k;587 }588 589 593 // data quality assessment 590 594 isBad |= (measure[k].photFlags & code->photomBadMask);
Note:
See TracChangeset
for help on using the changeset viewer.
