IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 16, 2007, 10:20:28 AM (19 years ago)
Author:
eugene
Message:

added explicit option to request internal mask and weight image

File:
1 edited

Legend:

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

    r14209 r14223  
    1818
    1919    // actions which ppImage should perform
     20    options->doMaskBuild     = false;   // Build internal mask
     21    options->doWeightBuild   = false;   // Build internal weight
    2022    options->doMask          = false;   // Mask bad pixels
    2123    options->doNonLin        = false;   // Non-linearity correction
     
    180182    }
    181183
     184    // for these images, even if not required otherwise
     185    options->doMaskBuild = psMetadataLookupBool(NULL, recipe, "MASK.BUILD");
     186    options->doWeightBuild = psMetadataLookupBool(NULL, recipe, "WEIGHT.BUILD");
     187
    182188    // Mask recipe options
    183189    options->doMask = psMetadataLookupBool(NULL, recipe, "MASK");
     
    190196    options->flatMask = pmConfigMask("FLAT", config);
    191197    options->blankMask = pmConfigMask("BLANK", config);
     198    // XXX should it be an error for these to not exist?
    192199
    193200    options->doBias = psMetadataLookupBool(NULL, recipe, "BIAS");
     
    225232    }
    226233
     234    // even if not requested explicitly, if any of these are set, build an internal mask and weight:
     235    if (options->doMask || options->doShutter || options->doFlat || options->doPhotom) {
     236        options->doMaskBuild = true;
     237        options->doWeightBuild = true;
     238    }
     239
    227240    options->BaseFITS       = psMetadataLookupBool(NULL, recipe, "BASE.FITS");
    228241    options->BaseMaskFITS   = psMetadataLookupBool(NULL, recipe, "BASE.MASK.FITS");
Note: See TracChangeset for help on using the changeset viewer.