- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppImage/src/ppImageOptions.c (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/ppImage/src/ppImageOptions.c
r24903 r27840 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 33 options->doPattern = false; // Pattern noise subtraction 34 options->doPatternRow = false; // Row pattern correction 35 options->doPatternCell = false; // Cell pattern correction 34 36 options->doFringe = false; // Fringe subtraction 35 37 options->doPhotom = false; // Source identification and photometry … … 64 66 options->blankMask = 0x00; // Blank (no data, cell gap) pixels (supplied to pmChipMosaic, pmFPAMosaic) 65 67 options->markValue = 0x00; // A safe bit for internal marking 66 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. 67 70 // crosstalk options 68 71 options->doCrosstalkMeasure = false; // measure crosstalk … … 88 91 options->fringeKeep = 1.0; // Fringe keep fraction 89 92 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 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 98 103 99 104 // Remnance values … … 219 224 options->doMaskSat = psMetadataLookupBool(NULL, recipe, "MASK.SATURATED"); 220 225 options->doMaskLow = psMetadataLookupBool(NULL, recipe, "MASK.LOW"); 226 options->doMaskBurntool = psMetadataLookupBool(NULL, recipe, "MASK.BURNTOOL"); 221 227 options->doVarianceBuild = psMetadataLookupBool(NULL, recipe, "VARIANCE.BUILD"); 222 228 … … 235 241 options->doFringe = psMetadataLookupBool(NULL, recipe, "FRINGE"); 236 242 options->doShutter = psMetadataLookupBool(NULL, recipe, "SHUTTER"); 237 options->doPattern = psMetadataLookupBool(NULL, recipe, "PATTERN"); 243 options->doPatternRow = psMetadataLookupBool(NULL, recipe, "PATTERN.ROW"); 244 options->doPatternCell = psMetadataLookupBool(NULL, recipe, "PATTERN.CELL"); 238 245 239 246 options->doStats = false; … … 245 252 options->applyParity = psMetadataLookupBool(NULL, recipe, "APPLY.CELL.PARITY"); 246 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 247 261 // binned image options 248 262 options->xBin1 = psMetadataLookupS32(&status, recipe, "BIN1.XBIN"); 249 263 if (!status) { 250 264 psWarning("BIN1.XBIN not found in recipe: setting to default value.\n"); 265 options->xBin1 = 4; 251 266 } 252 267 options->yBin1 = psMetadataLookupS32(&status, recipe, "BIN1.YBIN"); 253 268 if (!status) { 254 269 psWarning("BIN1.YBIN not found in recipe: setting to default value.\n"); 255 options->yBin1 = 16;270 options->yBin1 = 4; 256 271 } 257 272 … … 309 324 options->fringeKeep = psMetadataLookupF32(NULL, recipe, "FRINGE.KEEP"); 310 325 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")); 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")); 318 335 319 336 // Remnance options
Note:
See TracChangeset
for help on using the changeset viewer.
