Changeset 25299 for trunk/ppImage/src
- Timestamp:
- Sep 8, 2009, 5:32:55 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
- 1 copied
-
. (modified) (1 prop)
-
ppImage/src/Makefile.am (modified) (1 diff)
-
ppImage/src/ppImage.h (modified) (4 diffs)
-
ppImage/src/ppImageBurntoolMask.c (copied) (copied from branches/czw_branch/cleanup/ppImage/src/ppImageBurntoolMask.c )
-
ppImage/src/ppImageDetrendReadout.c (modified) (1 diff)
-
ppImage/src/ppImageOptions.c (modified) (4 diffs)
-
ppImage/src/ppImageSetMaskBits.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/czw_branch/cleanup (added) merged: 25050-25051,25088,25143-25155,25157-25159,25161,25210-25212
- Property svn:mergeinfo changed
-
trunk/ppImage/src/Makefile.am
r24229 r25299 54 54 ppImageDefineFile.c \ 55 55 ppImageSetMaskBits.c \ 56 ppImageBurntoolMask.c \ 56 57 ppImageParityFlip.c \ 57 58 ppImageCheckCTE.c \ -
trunk/ppImage/src/ppImage.h
r24903 r25299 26 26 bool doMaskBuild; // Build internal mask 27 27 bool doVarianceBuild; // Build internal variance map 28 bool doMaskBurntool; // mask potential burntool trails 28 29 bool doMaskSat; // mask saturated pixels 29 30 bool doMaskLow; // mask low pixels … … 74 75 psImageMaskType darkMask; // Mask value to give bad dark pixels 75 76 psImageMaskType blankMask; // Mask value to give blank pixels 76 77 psImageMaskType burntoolMask; // Suspect pixels that fall where a burntool trail is expected. 77 78 // non-linear correction parameters 78 79 psDataType nonLinearType; … … 82 83 // options for the analysis 83 84 pmOverscanOptions *overscan; // Overscan options 84 85 int burntoolTrails; 85 86 // binning parameters 86 87 int xBin1; // x-binning, scale 1 … … 156 157 bool ppImageCheckCTE(pmConfig *config, ppImageOptions *options, pmFPAview *view); 157 158 159 bool ppImageBurntoolMask(pmConfig *config, ppImageOptions *options, pmFPAview *view, pmReadout *mask); 160 158 161 // Record which detrend file was used for the detrending 159 162 bool ppImageDetrendRecord( -
trunk/ppImage/src/ppImageDetrendReadout.c
r24903 r25299 26 26 pmMaskBadPixels(input, mask, options->maskValue); 27 27 } 28 if (options->doMaskBurntool) { 29 ppImageBurntoolMask(config,options,view,input); 30 } 31 28 32 29 33 # if 0 -
trunk/ppImage/src/ppImageOptions.c
r24903 r25299 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 … … 64 65 options->blankMask = 0x00; // Blank (no data, cell gap) pixels (supplied to pmChipMosaic, pmFPAMosaic) 65 66 options->markValue = 0x00; // A safe bit for internal marking 66 67 options->burntoolMask = 0x00; // Suspect pixels that fall where a burntool trail is expected. 68 options->burntoolTrails = 0x00; // Which types of burntool areas to mask. 67 69 // crosstalk options 68 70 options->doCrosstalkMeasure = false; // measure crosstalk … … 219 221 options->doMaskSat = psMetadataLookupBool(NULL, recipe, "MASK.SATURATED"); 220 222 options->doMaskLow = psMetadataLookupBool(NULL, recipe, "MASK.LOW"); 223 options->doMaskBurntool = psMetadataLookupBool(NULL, recipe, "MASK.BURNTOOL"); 221 224 options->doVarianceBuild = psMetadataLookupBool(NULL, recipe, "VARIANCE.BUILD"); 222 225 … … 245 248 options->applyParity = psMetadataLookupBool(NULL, recipe, "APPLY.CELL.PARITY"); 246 249 250 options->burntoolTrails = psMetadataLookupU16(&status, recipe, "BURNTOOL.TRAILS"); 251 if (!status) { 252 psWarning("BURNTOOL.TRAILS not found in recipe: setting to default value.\n"); 253 } 254 247 255 // binned image options 248 256 options->xBin1 = psMetadataLookupS32(&status, recipe, "BIN1.XBIN"); 249 257 if (!status) { 250 258 psWarning("BIN1.XBIN not found in recipe: setting to default value.\n"); 259 options->xBin1 = 4; 251 260 } 252 261 options->yBin1 = psMetadataLookupS32(&status, recipe, "BIN1.YBIN"); 253 262 if (!status) { 254 263 psWarning("BIN1.YBIN not found in recipe: setting to default value.\n"); 255 options->yBin1 = 16;264 options->yBin1 = 4; 256 265 } 257 266 -
trunk/ppImage/src/ppImageSetMaskBits.c
r24079 r25299 38 38 psAssert (options->lowMask, "low mask not set"); 39 39 40 // mask for suspect regions due to burntool 41 options->burntoolMask = pmConfigMaskGet("BURNTOOL",config); 42 psAssert (options->burntoolMask, "burntool mask not set"); 43 40 44 // save MASK and MARK on the PSPHOT recipe 41 45 psMetadata *recipe = psMetadataLookupPtr (NULL, config->recipes, PSPHOT_RECIPE);
Note:
See TracChangeset
for help on using the changeset viewer.
