IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 11, 2015, 9:00:49 AM (11 years ago)
Author:
eugene
Message:

trying to get 2mass correction right

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150625/Ohana/src/relastro/src/UpdateObjects.c

    r38655 r38675  
    2020  FitStats *fitStatsChips = FitStatsInit (NmeasureMax, N_BOOTSTRAP_SAMPLES);
    2121  FitStats *fitStatsStack = FitStatsInit (NmeasureMax, N_BOOTSTRAP_SAMPLES);
     22
     23  AstromErrorSetLoop (Nloop);
    2224
    2325  int i;
     
    464466  // I've already allocated fit->points (and fit->sample) with space for fit->NpointsAlloc entries
    465467
     468  int has2MASS = FALSE;
     469
    466470  int Npoints = fit->Npoints = 0;
    467471  FitAstromPoint *points = fit->points;
     
    555559    Npoints++;
    556560
     561    if ((measure[0].photcode >= 2011) && (measure[0].photcode <= 2013)) {
     562      has2MASS = TRUE;
     563    }
     564
    557565    myAssert (Npoints <= fit->NpointsAlloc, "oops");
    558566  } // 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  }
    559577
    560578  fit->Npoints = Npoints;
Note: See TracChangeset for help on using the changeset viewer.