IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 28, 2008, 1:49:32 PM (18 years ago)
Author:
Paul Price
Message:

Implementing background subtraction in the place of replacing bad pixels with the background. Bad pixels are automatically identified and set to 0 in the process, so this is effectively the same thing as before, except it subtracts the background as well. The background (from psphot) is built if it doesn't exist.

File:
1 edited

Legend:

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

    r18556 r20444  
    247247    options->doAstromChip   = psMetadataLookupBool(NULL, recipe, "ASTROM.CHIP");
    248248    options->doAstromMosaic = psMetadataLookupBool(NULL, recipe, "ASTROM.MOSAIC");
     249    options->doBG           = psMetadataLookupBool(NULL, recipe, "BACKGROUND");
    249250
    250251    // even if not requested explicitly, if any of these are set, build an internal mask and weight:
     
    253254        options->doMaskBuild = true;
    254255        options->doWeightBuild = true;
    255     } else if (options->doMask) {
     256    } else if (options->doMask || options->doBG) {
    256257        options->doMaskBuild = true;
    257258    }
     
    267268    options->fringeKeep = psMetadataLookupF32(NULL, recipe, "FRINGE.KEEP");
    268269
    269     options->replaceMasked  = psMetadataLookupBool(NULL, recipe, "REPLACE.MASKED");
    270270
    271271    return options;
Note: See TracChangeset for help on using the changeset viewer.