IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 22, 2009, 9:33:24 AM (17 years ago)
Author:
Paul Price
Message:

Cleaning up pattern noise subtraction code.

File:
1 edited

Legend:

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

    r24485 r24892  
    3131    options->doShutter       = false;   // Shutter correction
    3232    options->doFlat          = false;   // Flat-field normalisation
     33    options->doPattern       = false;   // Pattern noise subtraction
    3334    options->doFringe        = false;   // Fringe subtraction
    3435    options->doPhotom        = false;   // Source identification and photometry
     
    8687    options->fringeIter      = 0;       // Fringe iterations
    8788    options->fringeKeep      = 1.0;     // Fringe keep fraction
     89
     90    // Pattern noise values
     91
     92    options->patternOrder    = 0;       // Polynomial order
     93    options->patternIter     = 0;       // Clipping iterations
     94    options->patternRej      = NAN;     // Clipping rejection threshold
     95    options->patternMean     = PS_STAT_NONE; // Statistic for mean
     96    options->patternStdev    = PS_STAT_NONE; // Statistic for standard deviation
    8897
    8998    // Remnance values
     
    225234    options->doFringe = psMetadataLookupBool(NULL, recipe, "FRINGE");
    226235    options->doShutter = psMetadataLookupBool(NULL, recipe, "SHUTTER");
     236    options->doPattern = psMetadataLookupBool(NULL, recipe, "PATTERN");
    227237
    228238    options->doStats = false;
     
    298308    options->fringeKeep = psMetadataLookupF32(NULL, recipe, "FRINGE.KEEP");
    299309
     310    // Pattern noise
     311    options->patternOrder = psMetadataLookupS32(NULL, recipe, "PATTERN.ORDER");
     312    options->patternIter = psMetadataLookupS32(NULL, recipe, "PATTERN.ITER");
     313    options->patternRej = psMetadataLookupF32(NULL, recipe, "PATTERN.REJ");
     314    options->patternMean = psStatsOptionFromString(psMetadataLookupStr(NULL, recipe, "PATTERN.MEAN"));
     315    options->patternStdev = psStatsOptionFromString(psMetadataLookupStr(NULL, recipe, "PATTERN.STDEV"));
     316
    300317    // Remnance options
    301318    options->remnanceSize = psMetadataLookupF32(NULL, recipe, "REMNANCE.SIZE");
Note: See TracChangeset for help on using the changeset viewer.