- Timestamp:
- Feb 24, 2016, 10:17:50 AM (10 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/relastro/src/ImageOps.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/relastro/src/ImageOps.c
r39287 r39381 766 766 float dTime = (measure[0].t - catalog[c].average[n].Tmean) / (86400*365.25) ; // time relative to Tmean in years 767 767 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 769 769 ref[i].R += dTime * catalog[c].average[n].uR / 3600.0 / cos(ref[i].D*RAD_DEG); 770 770 ref[i].D += dTime * catalog[c].average[n].uD / 3600.0; … … 1129 1129 1130 1130 /** 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 1132 1132 int MeasFilterTestTiny(MeasureTiny *measure, int applySigmaLim) { 1133 1133 int found, k; … … 1140 1140 if (!finite(measure[0].dM)) return FALSE; //XXX is this necessary for all relastro tasks? 1141 1141 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 1142 1147 /* select measurements by photcode, or equiv photcode, if specified */ 1143 1148 if (NphotcodesKeep > 0) { … … 1159 1164 } 1160 1165 1161 // if (MinBadQF > 0.0) {1162 // if (measure[0].psfQF < MinBadQF) return FALSE;1163 // }1164 1165 1166 /* select measurements by time */ 1166 1167 if (TimeSelect) { … … 1182 1183 1183 1184 /* 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 1184 1187 if (applySigmaLim && (SIGMA_LIM > 0) && (measure[0].dM > SIGMA_LIM)) { 1185 1188 return FALSE;
Note:
See TracChangeset
for help on using the changeset viewer.
