Changeset 24891
- Timestamp:
- Jul 22, 2009, 9:28:22 AM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 4 edited
-
ippconfig/recipes/ppImage.config (modified) (1 diff)
-
ppImage/src/ppImageDetrendReadout.c (modified) (2 diffs)
-
psModules/src/detrend/Makefile.am (modified) (2 diffs)
-
psModules/src/detrend/pmPattern.c (added)
-
psModules/src/detrend/pmPattern.h (added)
-
psModules/src/psmodules.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippconfig/recipes/ppImage.config
r24817 r24891 25 25 USE.DEBURNED.IMAGE BOOL FALSE # use burntool-repaired image? 26 26 TILTYSTREAK.APPLY BOOL FALSE # apply the 'tiltystreak' tool 27 28 PATTERN BOOL FALSE # Fit and remove pattern noise? 29 PATTERN.ORDER S32 1 # Polynomial order 30 PATTERN.ITER S32 3 # Rejection iterations 31 PATTERN.REJ F32 2.0 # Rejection threshold 32 PATTERN.MEAN STR ROBUST_MEDIAN # Statistic for mean 33 PATTERN.STDEV STR ROBUST_STDEV # Statistic for standard deviation 34 27 35 28 36 TILTYSTREAK.BY.CLASS METADATA # apply the 'tiltystreak' tool -
trunk/ppImage/src/ppImageDetrendReadout.c
r24485 r24891 64 64 if (options->doVarianceBuild) { 65 65 // create the target mask and variance images 66 psImage *noiseImage = NULL;67 if (options->doNoiseMap) {68 // XXX convert the noiseMap image to a binned image69 pmReadout *noiseMap = NULL;70 noiseMap = pmFPAfileThisReadout(config->files, detview, "PPIMAGE.NOISEMAP");71 noiseImage = psImageCopy (NULL, input->image, PS_TYPE_F32);72 psImageInit (noiseImage, 0.0);73 74 // XXX this works, but is not really quite right: the model shoud include the75 // offset information, we are not really getting exactly the right mapping from the76 // original file.77 psImageBinning *binning = psImageBinningAlloc();78 binning->nXruff = noiseMap->image->numCols;79 binning->nYruff = noiseMap->image->numRows;80 binning->nXfine = input->image->numCols;81 binning->nYfine = input->image->numRows;82 psImageBinningSetScale(binning, PS_IMAGE_BINNING_LEFT);83 84 psImageUnbin (noiseImage, noiseMap->image, binning);85 psFree (binning);86 }66 psImage *noiseImage = NULL; 67 if (options->doNoiseMap) { 68 // XXX convert the noiseMap image to a binned image 69 pmReadout *noiseMap = NULL; 70 noiseMap = pmFPAfileThisReadout(config->files, detview, "PPIMAGE.NOISEMAP"); 71 noiseImage = psImageCopy (NULL, input->image, PS_TYPE_F32); 72 psImageInit (noiseImage, 0.0); 73 74 // XXX this works, but is not really quite right: the model shoud include the 75 // offset information, we are not really getting exactly the right mapping from the 76 // original file. 77 psImageBinning *binning = psImageBinningAlloc(); 78 binning->nXruff = noiseMap->image->numCols; 79 binning->nYruff = noiseMap->image->numRows; 80 binning->nXfine = input->image->numCols; 81 binning->nYfine = input->image->numRows; 82 psImageBinningSetScale(binning, PS_IMAGE_BINNING_LEFT); 83 84 psImageUnbin (noiseImage, noiseMap->image, binning); 85 psFree (binning); 86 } 87 87 pmReadoutGenerateVariance(input, noiseImage, true); 88 psFree (noiseImage);88 psFree (noiseImage); 89 89 } 90 90 … … 123 123 } 124 124 } 125 126 // Pattern noise correction 127 if (options->doPattern) { 128 if (!pmPatternRow(input, options->patternOrder, 129 options->patternIter, options->patternRej, options->patternMean, 130 options->patternStdev)) { 131 psFree(detview); 132 return false; 133 } 134 } 135 125 136 126 137 // Normalization by a single (known) constant -
trunk/psModules/src/detrend/Makefile.am
r20617 r24891 16 16 pmShifts.c \ 17 17 pmDark.c \ 18 pmRemnance.c 18 pmRemnance.c \ 19 pmPattern.c 19 20 20 21 # pmSkySubtract.c … … 33 34 pmShifts.h \ 34 35 pmDark.h \ 35 pmRemnance.h 36 pmRemnance.h \ 37 pmPattern.h 36 38 37 39 # pmSkySubtract.h -
trunk/psModules/src/psmodules.h
r24836 r24891 77 77 #include <pmDark.h> 78 78 #include <pmRemnance.h> 79 #include <pmPattern.h> 79 80 80 81 // the following headers are from psModule:astrom
Note:
See TracChangeset
for help on using the changeset viewer.
