Changeset 25968
- Timestamp:
- Oct 29, 2009, 10:55:24 AM (17 years ago)
- File:
-
- 1 edited
-
branches/pap/ppStack/src/ppStackReadout.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/ppStack/src/ppStackReadout.c
r25964 r25968 214 214 215 215 bool mdok; // Status of MD lookup 216 int iter = psMetadataLookupS32(NULL, recipe, "ITER"); // Rejection iterations217 float combineRej = psMetadataLookupF32(NULL, recipe, "COMBINE.REJ"); // Combination threshold218 float combineSys = psMetadataLookupF32(NULL, recipe, "COMBINE.SYS"); // Combination systematic error219 float combineDiscard = psMetadataLookupF32(NULL, recipe, "COMBINE.DISCARD"); // Olympic discard fraction220 216 bool useVariance = psMetadataLookupBool(&mdok, recipe, "VARIANCE"); // Use variance for rejection? 221 217 bool safe = psMetadataLookupBool(&mdok, recipe, "SAFE"); // Be safe when combining small numbers of pixels … … 229 225 psArray *stack = psArrayAlloc(num); // Array for stacking 230 226 231 if (rejected) { 232 // We have rejection from a previous combination: combine without flagging pixels to inspect 233 safe &= safety; 234 iter = 0; 235 combineRej = NAN; 236 combineSys = NAN; 237 } 227 // We have rejection from a previous combination: combine without flagging pixels to inspect 228 safe &= safety; 229 int iter = 0; 230 float combineRej = NAN; 231 float combineSys = NAN; 232 float combineDiscard = NAN; 238 233 239 234 for (int i = 0; i < num; i++) { … … 273 268 274 269 if (!pmStackCombine(outRO, stack, maskVal | maskBad, maskBad, 0, iter, combineRej, 275 combineSys, combineDiscard, useVariance, safe, !rejected)) {270 combineSys, combineDiscard, useVariance, safe, true)) { 276 271 psError(PS_ERR_UNKNOWN, false, "Unable to combine input readouts."); 277 272 psFree(stack);
Note:
See TracChangeset
for help on using the changeset viewer.
