IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29658


Ignore:
Timestamp:
Nov 3, 2010, 5:55:46 PM (16 years ago)
Author:
eugene
Message:

only force mask for doPhotom, doMask, doBG; only force variance for doPhotom, doNoiseMap

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20101103/ppImage/src/ppImageOptions.c

    r28043 r29658  
    307307    options->checkCTE       = psMetadataLookupBool(NULL, recipe, "CHECK.CTE");
    308308
     309    /* doMaskBuild : there are some cases where we require a mask, so we force doMaskBuild to be set even if the user specified 'FALSE'
     310     *
     311     * doPhotom : a mask is required because it is used to mark the locations of stars
     312     *
     313     * doNoiseMap : no reason this needs to trigger a mask?
     314     * doBias : no reason this needs to trigger a mask?
     315     * doOverscan : no reason this needs to trigger a mask?
     316     * doDark : no reason this needs to trigger a mask?
     317     * doShutter : no reason this needs to trigger a mask?
     318     * doFlat : no reason this needs to trigger a mask?
     319     */
     320
    309321    // even if not requested explicitly, if any of these are set, build an internal mask and variance:
    310     if (options->doNoiseMap || options->doBias || options->doOverscan || options->doDark || options->doShutter || options->doFlat ||
    311         options->doPhotom) {
    312         options->doMaskBuild = true;
     322    // XXX we used to automatically generate a mask in all of these cases.
     323    // if (options->doNoiseMap || options->doBias || options->doOverscan || options->doDark || options->doShutter || options->doFlat || options->doPhotom) {
     324    //     options->doMaskBuild = true;
     325    //     options->doVarianceBuild = true;
     326    // }
     327
     328    // photometry and noisemap both require a variance image
     329    if (options->doNoiseMap || options->doPhotom) {
    313330        options->doVarianceBuild = true;
    314     } else if (options->doMask || options->doBG) {
     331    }
     332
     333    // photometry, mask, and background all require a mask image
     334    if (options->doMask || options->doBG || options->doPhotom) {
    315335        options->doMaskBuild = true;
    316336    }
Note: See TracChangeset for help on using the changeset viewer.