IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 25968


Ignore:
Timestamp:
Oct 29, 2009, 10:55:24 AM (17 years ago)
Author:
Paul Price
Message:

ppStackReadoutFinal should always do full rejection.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap/ppStack/src/ppStackReadout.c

    r25964 r25968  
    214214
    215215    bool mdok;                          // Status of MD lookup
    216     int iter = psMetadataLookupS32(NULL, recipe, "ITER"); // Rejection iterations
    217     float combineRej = psMetadataLookupF32(NULL, recipe, "COMBINE.REJ"); // Combination threshold
    218     float combineSys = psMetadataLookupF32(NULL, recipe, "COMBINE.SYS"); // Combination systematic error
    219     float combineDiscard = psMetadataLookupF32(NULL, recipe, "COMBINE.DISCARD"); // Olympic discard fraction
    220216    bool useVariance = psMetadataLookupBool(&mdok, recipe, "VARIANCE"); // Use variance for rejection?
    221217    bool safe = psMetadataLookupBool(&mdok, recipe, "SAFE"); // Be safe when combining small numbers of pixels
     
    229225    psArray *stack = psArrayAlloc(num); // Array for stacking
    230226
    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;
    238233
    239234    for (int i = 0; i < num; i++) {
     
    273268
    274269    if (!pmStackCombine(outRO, stack, maskVal | maskBad, maskBad, 0, iter, combineRej,
    275                         combineSys, combineDiscard, useVariance, safe, !rejected)) {
     270                        combineSys, combineDiscard, useVariance, safe, true)) {
    276271        psError(PS_ERR_UNKNOWN, false, "Unable to combine input readouts.");
    277272        psFree(stack);
Note: See TracChangeset for help on using the changeset viewer.