IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20626


Ignore:
Timestamp:
Nov 9, 2008, 8:42:47 PM (18 years ago)
Author:
Paul Price
Message:

Adding remnance options to recipe.

Location:
trunk/ppImage/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppImage/src/ppImage.h

    r20618 r20626  
    8484    float fringeKeep;                   // Fringe keep fraction
    8585
     86    int remnanceSize;                   // Size for remnance detection
     87    float remnanceThresh;               // Threshold for remnance detection
    8688} ppImageOptions;
    8789
  • trunk/ppImage/src/ppImageDetrendReadout.c

    r20618 r20626  
    7272
    7373    if (options->doRemnance) {
    74         if (!pmRemnance(input, options->maskValue, options->badMask)) {
     74        if (!pmRemnance(input, options->maskValue, options->badMask,
     75                        options->remnanceSize, options->remnanceThresh)) {
    7576            psError(PS_ERR_UNKNOWN, false, "Unable to mask remnance.");
    7677            return false;
  • trunk/ppImage/src/ppImageOptions.c

    r20618 r20626  
    7777    options->fringeKeep      = 1.0;     // Fringe keep fraction
    7878
     79    // Remnance values
     80    options->remnanceSize    = 30;      // Size for remnance detection
     81    options->remnanceThresh  = 25.0;    // Threshold for remnance detection
     82
    7983    return options;
    8084}
     
    197201    options->doBias = psMetadataLookupBool(NULL, recipe, "BIAS");
    198202    options->doDark = psMetadataLookupBool(NULL, recipe, "DARK");
     203    options->doRemnance = psMetadataLookupBool(NULL, recipe, "REMNANCE");
    199204    options->doFlat = psMetadataLookupBool(NULL, recipe, "FLAT");
    200205    options->doFringe = psMetadataLookupBool(NULL, recipe, "FRINGE");
     
    269274    options->fringeKeep = psMetadataLookupF32(NULL, recipe, "FRINGE.KEEP");
    270275
     276    // Remnance options
     277    options->remnanceSize = psMetadataLookupF32(NULL, recipe, "REMNANCE.SIZE");
     278    options->remnanceThresh = psMetadataLookupS32(NULL, recipe, "REMNANCE.THRESH");
    271279
    272280    return options;
Note: See TracChangeset for help on using the changeset viewer.