IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 16, 2008, 5:36:56 PM (18 years ago)
Author:
Paul Price
Message:

First attempt to switch over to new mask setup.

File:
1 edited

Legend:

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

    r18435 r18591  
    3232    int iter = psMetadataLookupS32(NULL, config->arguments, "ITER"); // Rejection iterations
    3333    float combineRej = psMetadataLookupF32(NULL, config->arguments, "COMBINE.REJ"); // Combination threshold
    34     psMaskType maskBad = psMetadataLookupU8(NULL, config->arguments, "MASK.BAD"); // Value to mask
    35     psMaskType maskBlank = psMetadataLookupU8(NULL, config->arguments, "MASK.BLANK"); // Mask for blank reg.
    36 //    float threshold = psMetadataLookupF32(NULL, config->arguments, "THRESHOLD.MASK"); // Threshold for mask deconvolution
     34    psMaskType maskVal = pmConfigMaskGet("BLANK", config); // Value to mask
    3735    bool useVariance = psMetadataLookupBool(&mdok, config->arguments, "VARIANCE"); // Use variance for rejection?
    3836    bool safe = psMetadataLookupBool(&mdok, config->arguments, "SAFE"); // Play safe when combining small numbers of pixels?
     
    6765    }
    6866
    69     if (!pmStackCombine(outRO, stack, maskBad, maskBlank, kernelSize, iter, combineRej, true,
     67    if (!pmStackCombine(outRO, stack, maskVal, maskVal, kernelSize, iter, combineRej, true,
    7068                        useVariance, safe)) {
    7169        psError(PS_ERR_UNKNOWN, false, "Unable to combine input readouts with rejection.");
     
    9391                                            psRegionSet(0, outRO->image->numCols - 1,
    9492                                                        0, outRO->image->numRows - 1),
    95                                             maskBlank);
     93                                            maskVal);
    9694        psString name = NULL;           // Name of image
    9795        psStringAppend(&name, "inspect_%03d_%03d.fits", sectionNum, i);
     
    140138    // Get the recipe values
    141139    bool mdok;                          // Status of MD lookup
    142     psMaskType maskBad = psMetadataLookupU8(NULL, config->arguments, "MASK.BAD"); // Value to mask
    143     psMaskType maskBlank = psMetadataLookupU8(NULL, config->arguments, "MASK.BLANK"); // Mask for blank reg.
     140    psMaskType maskVal = pmConfigMaskGet("BLANK", config); // Value to mask
    144141    bool useVariance = psMetadataLookupBool(&mdok, config->arguments, "VARIANCE"); // Use variance for rejection?
    145142
     
    208205                                             psRegionSet(0, outRO->image->numCols - 1,
    209206                                                         0, outRO->image->numRows - 1),
    210                                              maskBlank);
     207                                             maskVal);
    211208            psString name = NULL;           // Name of image
    212209            psStringAppend(&name, "reject_%03d.fits", i);
     
    220217#endif
    221218
    222     if (!pmStackCombine(outRO, stack, maskBad, maskBlank, 0, 0, NAN, numGood != num, useVariance, false)) {
     219    if (!pmStackCombine(outRO, stack, maskVal, maskVal, 0, 0, NAN, numGood != num, useVariance, false)) {
    223220        psError(PS_ERR_UNKNOWN, false, "Unable to combine input readouts.");
    224221        psFree(fpaList);
Note: See TracChangeset for help on using the changeset viewer.