IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 39381 for trunk


Ignore:
Timestamp:
Feb 24, 2016, 10:17:50 AM (10 years ago)
Author:
eugene
Message:

enable psfQF filtering for relastro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/relastro/src/ImageOps.c

    r39287 r39381  
    766766      float dTime = (measure[0].t - catalog[c].average[n].Tmean) / (86400*365.25) ; // time relative to Tmean in years
    767767
    768       // XXX do this in a better way?
     768      // XXX do this in a better way? (my main concern is that this is wrong near the pole : should be done in a local projection
    769769      ref[i].R += dTime * catalog[c].average[n].uR / 3600.0 / cos(ref[i].D*RAD_DEG);
    770770      ref[i].D += dTime * catalog[c].average[n].uD / 3600.0;
     
    11291129
    11301130/** Determine whether a measurement should be included in the analysis, based on supplied filter criteria */
    1131 // we only optionally apply the sigma limit: for object averages, this should not be used (should it?)
     1131// we only optionally apply the sigma limit: for object averages, this should not be used
    11321132int MeasFilterTestTiny(MeasureTiny *measure, int applySigmaLim) {
    11331133  int found, k;
     
    11401140  if (!finite(measure[0].dM)) return FALSE; //XXX is this necessary for all relastro tasks?
    11411141 
     1142  if ((MinBadQF > 0.0) && (isGPC1chip(measure[0].photcode) || isGPC1stack(measure[0].photcode))) {
     1143    if (!isfinite(measure[0].psfQF)) { return FALSE; };
     1144    if (measure[0].psfQF < MinBadQF) { return FALSE; };
     1145  }
     1146
    11421147  /* select measurements by photcode, or equiv photcode, if specified */
    11431148  if (NphotcodesKeep > 0) {
     
    11591164  } 
    11601165 
    1161   // if (MinBadQF > 0.0) {
    1162   //   if (measure[0].psfQF < MinBadQF) return FALSE;
    1163   // }
    1164 
    11651166  /* select measurements by time */
    11661167  if (TimeSelect) {
     
    11821183
    11831184  /* select measurements by measurement error */
     1185  // this is a bit convoluted: applySigmaLim is only TRUE when this function is
     1186  // called by bcatalog.  for UpdateObjects, it is FALSE
    11841187  if (applySigmaLim && (SIGMA_LIM > 0) && (measure[0].dM > SIGMA_LIM)) {
    11851188    return FALSE;
Note: See TracChangeset for help on using the changeset viewer.