IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 7, 2009, 4:08:25 PM (17 years ago)
Author:
Paul Price
Message:

Merging trunk (r25026) to get up-to-date on old branch.

Location:
branches/pap
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/pap

  • branches/pap/ppImage

    • Property svn:mergeinfo deleted
  • branches/pap/ppImage/src/ppImageOptions.c

    r23845 r25027  
    2525    options->doNonLin        = false;   // Non-linearity correction
    2626    options->doOverscan      = false;   // Overscan subtraction
     27    options->doNoiseMap      = false;   // Apply Read Noise Map
    2728    options->doBias          = false;   // Bias subtraction
    2829    options->doDark          = false;   // Dark subtraction
     
    3031    options->doShutter       = false;   // Shutter correction
    3132    options->doFlat          = false;   // Flat-field normalisation
     33    options->doPattern       = false;   // Pattern noise subtraction
    3234    options->doFringe        = false;   // Fringe subtraction
    3335    options->doPhotom        = false;   // Source identification and photometry
     
    3638    options->doStats         = false;   // Measure and save image statistics
    3739    options->checkCTE        = false;   // Measure pixel-based variance
     40    options->applyParity     = false;   // Apply Cell parities
    3841
    3942    // output files requested
     
    5861    options->lowMask         = 0x00;    // out-of-bounds (low) pixels (supplied to pmReadoutGenerateMask)
    5962    options->flatMask        = 0x00;    // Bad flat pixels (supplied to pmFlatField)
     63    options->darkMask        = 0x00;    // Bad dark pixels (supplied to pmDarkApply)
    6064    options->blankMask       = 0x00;    // Blank (no data, cell gap) pixels (supplied to pmChipMosaic, pmFPAMosaic)
    6165    options->markValue       = 0x00;    // A safe bit for internal marking
     
    8387    options->fringeIter      = 0;       // Fringe iterations
    8488    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->patternThresh   = NAN;     // Threshold for ignoring pixels
     96    options->patternMean     = PS_STAT_NONE; // Statistic for mean
     97    options->patternStdev    = PS_STAT_NONE; // Statistic for standard deviation
    8598
    8699    // Remnance values
     
    215228    options->doCrosstalkCorrect = psMetadataLookupBool(NULL, recipe, "CROSSTALK.CORRECT");
    216229
     230    options->doNoiseMap = psMetadataLookupBool(NULL, recipe, "NOISEMAP");
    217231    options->doBias = psMetadataLookupBool(NULL, recipe, "BIAS");
    218232    options->doDark = psMetadataLookupBool(NULL, recipe, "DARK");
     
    221235    options->doFringe = psMetadataLookupBool(NULL, recipe, "FRINGE");
    222236    options->doShutter = psMetadataLookupBool(NULL, recipe, "SHUTTER");
     237    options->doPattern = psMetadataLookupBool(NULL, recipe, "PATTERN");
    223238
    224239    options->doStats = false;
     
    228243    }
    229244
     245    options->applyParity = psMetadataLookupBool(NULL, recipe, "APPLY.CELL.PARITY");
     246
    230247    // binned image options
    231248    options->xBin1 = psMetadataLookupS32(&status, recipe, "BIN1.XBIN");
     
    274291
    275292    // even if not requested explicitly, if any of these are set, build an internal mask and variance:
    276     if (options->doBias || options->doOverscan || options->doDark || options->doShutter || options->doFlat ||
     293    if (options->doNoiseMap || options->doBias || options->doOverscan || options->doDark || options->doShutter || options->doFlat ||
    277294        options->doPhotom) {
    278295        options->doMaskBuild = true;
     
    292309    options->fringeKeep = psMetadataLookupF32(NULL, recipe, "FRINGE.KEEP");
    293310
     311    // Pattern noise
     312    options->patternOrder = psMetadataLookupS32(NULL, recipe, "PATTERN.ORDER");
     313    options->patternIter = psMetadataLookupS32(NULL, recipe, "PATTERN.ITER");
     314    options->patternRej = psMetadataLookupF32(NULL, recipe, "PATTERN.REJ");
     315    options->patternThresh = psMetadataLookupF32(NULL, recipe, "PATTERN.THRESH");
     316    options->patternMean = psStatsOptionFromString(psMetadataLookupStr(NULL, recipe, "PATTERN.MEAN"));
     317    options->patternStdev = psStatsOptionFromString(psMetadataLookupStr(NULL, recipe, "PATTERN.STDEV"));
     318
    294319    // Remnance options
    295320    options->remnanceSize = psMetadataLookupF32(NULL, recipe, "REMNANCE.SIZE");
Note: See TracChangeset for help on using the changeset viewer.