IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29970


Ignore:
Timestamp:
Dec 7, 2010, 8:37:25 AM (15 years ago)
Author:
bills
Message:

fixes to ppImage from Gene

Location:
tags/ipp-20101206
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20101206/ippconfig

  • tags/ipp-20101206/ppImage

  • tags/ipp-20101206/ppImage/src/ppImageOptions.c

    r29926 r29970  
    216216
    217217    // for these images, even if not required otherwise
    218     options->doMaskBuild = psMetadataLookupBool(NULL, recipe, "MASK.BUILD");
    219     options->doMaskSat   = psMetadataLookupBool(NULL, recipe, "MASK.SATURATED");
    220     options->doMaskLow   = psMetadataLookupBool(NULL, recipe, "MASK.LOW");
    221     options->doMaskBurntool = psMetadataLookupBool(NULL, recipe, "MASK.BURNTOOL");
     218    options->doMaskBuild     = psMetadataLookupBool(NULL, recipe, "MASK.BUILD");
     219    options->doMaskSat       = psMetadataLookupBool(NULL, recipe, "MASK.SATURATED");
     220    options->doMaskLow       = psMetadataLookupBool(NULL, recipe, "MASK.LOW");
     221    options->doMaskBurntool  = psMetadataLookupBool(NULL, recipe, "MASK.BURNTOOL");
    222222    options->doVarianceBuild = psMetadataLookupBool(NULL, recipe, "VARIANCE.BUILD");
    223223
     
    313313     */
    314314
    315     // even if not requested explicitly, if any of these are set, build an internal mask and variance:
    316     // XXX we used to automatically generate a mask in all of these cases.
    317     // if (options->doNoiseMap || options->doBias || options->doOverscan || options->doDark || options->doShutter || options->doFlat || options->doPhotom) {
    318     //     options->doMaskBuild = true;
    319     //     options->doVarianceBuild = true;
    320     // }
    321 
     315    // if the variance image is requested, build it (if not supplied)
     316    if (options->BaseVarianceFITS || options->ChipVarianceFITS) {
     317        options->doVarianceBuild = true;
     318    }
    322319    // photometry and noisemap both require a variance image
    323320    if (options->doNoiseMap || options->doPhotom) {
     
    325322    }
    326323
     324    // we need a mask if we are going to apply these things:
     325    if (options->doMaskSat || options->doMaskLow || options->doMaskBurntool || options->doMaskStats) {
     326        options->doMaskBuild = true;
     327    }
    327328    // photometry, mask, and background all require a mask image
    328329    if (options->doMask || options->doBG || options->doPhotom) {
Note: See TracChangeset for help on using the changeset viewer.