IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 7, 2013, 4:01:35 PM (13 years ago)
Author:
bills
Message:

add new recipe options to ppImage to control application of an auxiliary
mask. This is intended to be a more selective mask that will be used by M31
and STS projects for their reprocessing. This masking is added to the
mask constructed during detrending after the cells have bee mosaiced.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImageOptions.c

    r35081 r35531  
    1010    // psFree(options->nonLinearData);
    1111    // psFree(options->nonLinearSource);
     12    psFree(options->auxVideoMask);
    1213}
    1314
     
    2425    options->doVarianceBuild = false;   // Build internal variance
    2526    options->doMask          = false;   // Mask bad pixels
     27    options->doAuxMask       = false;   // apply auxillary mask
    2628    options->doNonLin        = false;   // Non-linearity correction
    2729    options->doOverscan      = false;   // Overscan subtraction
     
    116118    options->normClass       = NULL;    // per-class normalizations refer to this class
    117119
     120    options->auxVideoMask    = NULL;    // auxillary video mask file name
     121
    118122    return options;
    119123}
     
    228232    options->doMaskBurntool  = psMetadataLookupBool(NULL, recipe, "MASK.BURNTOOL");
    229233    options->doVarianceBuild = psMetadataLookupBool(NULL, recipe, "VARIANCE.BUILD");
     234    options->doAuxMask       = psMetadataLookupBool(NULL, recipe, "MASK.AUXMASK");
     235    if (options->doAuxMask) {
     236        // if we are applying an auxiliary mask we can optionally apply another
     237        // mask to video cells only.
     238        psString auxVideoMask = psMetadataLookupStr(NULL, recipe, "AUX.VIDEO.MASK");
     239        // save the value if defined and not the value "NULL"
     240        if (auxVideoMask && strcmp(auxVideoMask, "NULL")) {
     241            options->auxVideoMask = psStringCopy(auxVideoMask);
     242        }
     243    }
    230244
    231245    // Mask recipe options (note that mask bit values are set in ppImageSetMaskBits.c)
Note: See TracChangeset for help on using the changeset viewer.