IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 5, 2010, 9:21:36 PM (15 years ago)
Author:
eugene
Message:

support for compressed metadata files; clarify rules for constructing a mask; support for modified psphotReadout API; remove some deprecated comments and test prints

File:
1 edited

Legend:

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

    r29833 r29926  
    301301    options->checkCTE       = psMetadataLookupBool(NULL, recipe, "CHECK.CTE");
    302302
     303    /* doMaskBuild : there are some cases where we require a mask, so we force doMaskBuild to be set even if the user specified 'FALSE'
     304     *
     305     * doPhotom : a mask is required because it is used to mark the locations of stars
     306     *
     307     * doNoiseMap : no reason this needs to trigger a mask?
     308     * doBias : no reason this needs to trigger a mask?
     309     * doOverscan : no reason this needs to trigger a mask?
     310     * doDark : no reason this needs to trigger a mask?
     311     * doShutter : no reason this needs to trigger a mask?
     312     * doFlat : no reason this needs to trigger a mask?
     313     */
     314
    303315    // even if not requested explicitly, if any of these are set, build an internal mask and variance:
    304     if (options->doNoiseMap || options->doBias || options->doOverscan || options->doDark || options->doShutter || options->doFlat ||
    305         options->doPhotom) {
    306         options->doMaskBuild = true;
     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
     322    // photometry and noisemap both require a variance image
     323    if (options->doNoiseMap || options->doPhotom) {
    307324        options->doVarianceBuild = true;
    308     } else if (options->doMask || options->doBG) {
     325    }
     326
     327    // photometry, mask, and background all require a mask image
     328    if (options->doMask || options->doBG || options->doPhotom) {
    309329        options->doMaskBuild = true;
    310330    }
Note: See TracChangeset for help on using the changeset viewer.