IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20497 for trunk/ppStack


Ignore:
Timestamp:
Oct 31, 2008, 5:00:04 PM (18 years ago)
Author:
Paul Price
Message:

Adding relative systematic error for combination when rejecting.

Location:
trunk/ppStack/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackArguments.c

    r20494 r20497  
    145145    psMetadataAddF32(arguments, PS_LIST_TAIL, "-combine-rej", 0,
    146146                     "Combination rejection thresold (sigma)", NAN);
     147    psMetadataAddF32(arguments, PS_LIST_TAIL, "-combine-sys", 0,
     148                     "Relative systematic error in combination", NAN);
    147149    psMetadataAddStr(arguments, PS_LIST_TAIL, "-mask-val", 0, "Mask value of input bad pixels", NULL);
    148150    psMetadataAddStr(arguments, PS_LIST_TAIL, "-mask-bad", 0, "Mask value to give bad pixels", NULL);
     
    226228    VALUE_ARG_RECIPE_INT("-iter",             "ITER",           S32, 0);
    227229    VALUE_ARG_RECIPE_FLOAT("-combine-rej",    "COMBINE.REJ",    F32);
     230    VALUE_ARG_RECIPE_FLOAT("-combine-sys",    "COMBINE.SYS",    F32);
    228231    VALUE_ARG_RECIPE_FLOAT("-threshold-mask", "THRESHOLD.MASK", F32);
    229232    VALUE_ARG_RECIPE_FLOAT("-image-rej",      "IMAGE.REJ",      F32);
  • trunk/ppStack/src/ppStackReadout.c

    r19532 r20497  
    9696    int iter = psMetadataLookupS32(NULL, recipe, "ITER"); // Rejection iterations
    9797    float combineRej = psMetadataLookupF32(NULL, recipe, "COMBINE.REJ"); // Combination threshold
     98    float combineSys = psMetadataLookupF32(NULL, recipe, "COMBINE.SYS"); // Combination systematic error
    9899    bool useVariance = psMetadataLookupBool(&mdok, recipe, "VARIANCE"); // Use variance for rejection?
    99100    bool safe = psMetadataLookupBool(&mdok, recipe, "SAFE"); // Be safe when combining small numbers of pixels
     
    133134    }
    134135
    135     if (!pmStackCombine(outRO, stack, maskVal | maskBad, maskBad, kernelSize, iter, combineRej, true,
    136                         useVariance, safe)) {
     136    if (!pmStackCombine(outRO, stack, maskVal | maskBad, maskBad, kernelSize, iter, combineRej, combineSys,
     137                        true, useVariance, safe)) {
    137138        psError(PS_ERR_UNKNOWN, false, "Unable to combine input readouts with rejection.");
    138139        psFree(stack);
Note: See TracChangeset for help on using the changeset viewer.