- Timestamp:
- May 3, 2010, 8:45:22 AM (16 years ago)
- Location:
- branches/simmosaic_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppImage/src/ppImageOptions.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simmosaic_branches
- Property svn:mergeinfo changed
-
branches/simmosaic_branches/ppImage/src/ppImageOptions.c
r24485 r27839 21 21 options->doMaskSat = false; // mask saturated pixels 22 22 options->doMaskLow = false; // mask low pixels 23 options->doMaskBurntool = false; // mask potential burntool trails 23 24 options->doVarianceBuild = false; // Build internal variance 24 25 options->doMask = false; // Mask bad pixels … … 31 32 options->doShutter = false; // Shutter correction 32 33 options->doFlat = false; // Flat-field normalisation 34 options->doPatternRow = false; // Row pattern correction 35 options->doPatternCell = false; // Cell pattern correction 33 36 options->doFringe = false; // Fringe subtraction 34 37 options->doPhotom = false; // Source identification and photometry … … 63 66 options->blankMask = 0x00; // Blank (no data, cell gap) pixels (supplied to pmChipMosaic, pmFPAMosaic) 64 67 options->markValue = 0x00; // A safe bit for internal marking 65 68 options->burntoolMask = 0x00; // Suspect pixels that fall where a burntool trail is expected. 69 options->burntoolTrails = 0x07; // Which types of burntool areas to mask. 66 70 // crosstalk options 67 71 options->doCrosstalkMeasure = false; // measure crosstalk … … 86 90 options->fringeIter = 0; // Fringe iterations 87 91 options->fringeKeep = 1.0; // Fringe keep fraction 92 93 // Pattern correction values 94 95 options->patternRowOrder = 0; // Polynomial order 96 options->patternRowIter = 0; // Clipping iterations 97 options->patternRowRej = NAN; // Clipping rejection threshold 98 options->patternRowThresh = NAN; // Threshold for ignoring pixels 99 options->patternRowMean = PS_STAT_NONE; // Statistic for mean 100 options->patternRowStdev = PS_STAT_NONE; // Statistic for standard deviation 101 options->patternCellBG = PS_STAT_NONE; // Statistic for background 102 options->patternCellMean = PS_STAT_NONE; // Statistic for mean 88 103 89 104 // Remnance values … … 209 224 options->doMaskSat = psMetadataLookupBool(NULL, recipe, "MASK.SATURATED"); 210 225 options->doMaskLow = psMetadataLookupBool(NULL, recipe, "MASK.LOW"); 226 options->doMaskBurntool = psMetadataLookupBool(NULL, recipe, "MASK.BURNTOOL"); 211 227 options->doVarianceBuild = psMetadataLookupBool(NULL, recipe, "VARIANCE.BUILD"); 212 228 … … 225 241 options->doFringe = psMetadataLookupBool(NULL, recipe, "FRINGE"); 226 242 options->doShutter = psMetadataLookupBool(NULL, recipe, "SHUTTER"); 243 options->doPatternRow = psMetadataLookupBool(NULL, recipe, "PATTERN.ROW"); 244 options->doPatternCell = psMetadataLookupBool(NULL, recipe, "PATTERN.CELL"); 227 245 228 246 options->doStats = false; … … 234 252 options->applyParity = psMetadataLookupBool(NULL, recipe, "APPLY.CELL.PARITY"); 235 253 254 options->burntoolTrails = psMetadataLookupS32(&status, recipe, "BURNTOOL.TRAILS"); 255 psTrace("psModules.detrend", 7, "burntoolTrails: %d BURNTOOL.TRAILS: %d Status: %d\n", 256 options->burntoolTrails,psMetadataLookupS32(&status,recipe,"BURNTOOL.TRAILS"),status); 257 if (!status) { 258 psWarning("BURNTOOL.TRAILS not found in recipe: setting to default value.\n"); 259 } 260 236 261 // binned image options 237 262 options->xBin1 = psMetadataLookupS32(&status, recipe, "BIN1.XBIN"); 238 263 if (!status) { 239 264 psWarning("BIN1.XBIN not found in recipe: setting to default value.\n"); 265 options->xBin1 = 4; 240 266 } 241 267 options->yBin1 = psMetadataLookupS32(&status, recipe, "BIN1.YBIN"); 242 268 if (!status) { 243 269 psWarning("BIN1.YBIN not found in recipe: setting to default value.\n"); 244 options->yBin1 = 16;270 options->yBin1 = 4; 245 271 } 246 272 … … 298 324 options->fringeKeep = psMetadataLookupF32(NULL, recipe, "FRINGE.KEEP"); 299 325 326 // Pattern correction 327 options->patternRowOrder = psMetadataLookupS32(NULL, recipe, "PATTERN.ROW.ORDER"); 328 options->patternRowIter = psMetadataLookupS32(NULL, recipe, "PATTERN.ROW.ITER"); 329 options->patternRowRej = psMetadataLookupF32(NULL, recipe, "PATTERN.ROW.REJ"); 330 options->patternRowThresh = psMetadataLookupF32(NULL, recipe, "PATTERN.ROW.THRESH"); 331 options->patternRowMean = psStatsOptionFromString(psMetadataLookupStr(NULL, recipe, "PATTERN.ROW.MEAN")); 332 options->patternRowStdev = psStatsOptionFromString(psMetadataLookupStr(NULL, recipe, "PATTERN.ROW.STDEV")); 333 options->patternCellBG = psStatsOptionFromString(psMetadataLookupStr(NULL, recipe, "PATTERN.CELL.BG")); 334 options->patternCellMean = psStatsOptionFromString(psMetadataLookupStr(NULL, recipe, "PATTERN.CELL.MEAN")); 335 300 336 // Remnance options 301 337 options->remnanceSize = psMetadataLookupF32(NULL, recipe, "REMNANCE.SIZE");
Note:
See TracChangeset
for help on using the changeset viewer.
