- Timestamp:
- Aug 11, 2015, 9:00:49 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20150625/Ohana/src/relastro/src/UpdateObjects.c
r38655 r38675 20 20 FitStats *fitStatsChips = FitStatsInit (NmeasureMax, N_BOOTSTRAP_SAMPLES); 21 21 FitStats *fitStatsStack = FitStatsInit (NmeasureMax, N_BOOTSTRAP_SAMPLES); 22 23 AstromErrorSetLoop (Nloop); 22 24 23 25 int i; … … 464 466 // I've already allocated fit->points (and fit->sample) with space for fit->NpointsAlloc entries 465 467 468 int has2MASS = FALSE; 469 466 470 int Npoints = fit->Npoints = 0; 467 471 FitAstromPoint *points = fit->points; … … 555 559 Npoints++; 556 560 561 if ((measure[0].photcode >= 2011) && (measure[0].photcode <= 2013)) { 562 has2MASS = TRUE; 563 } 564 557 565 myAssert (Npoints <= fit->NpointsAlloc, "oops"); 558 566 } // loop over measurements : average[0].Nmeasure 567 568 // XXX flag measurements from stars with 2MASS 569 for (k = 0; k < average[0].Nmeasure; k++) { 570 // reset the bit to note that a detection was used (or not) 571 if (has2MASS) { 572 measure[k].dbFlags &= ~ID_MEAS_POOR_PHOTOM; 573 } else { 574 measure[k].dbFlags |= ID_MEAS_POOR_PHOTOM; 575 } 576 } 559 577 560 578 fit->Npoints = Npoints;
Note:
See TracChangeset
for help on using the changeset viewer.
