- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppImage/src/ppImageLoop.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/ppImage/src/ppImageLoop.c
r24229 r27840 8 8 psError(PS_ERR_UNKNOWN, false, MESSAGE); \ 9 9 psFree(view); \ 10 pmFPAfileFreeSetStrict(false); \ 10 11 return false; \ 11 12 } … … 51 52 } 52 53 53 // crosstalk measurement needs to be done on the entire chip at once, and before54 // signal levels are modified by the detrending. If crosstalk measurement is55 // requested, the read-level for the images is set to CHIP.56 if (!ppImageMeasureCrosstalk(config, options, view)) {57 ESCAPE("Unable to perform crosstalk correction");58 }59 60 // crosstalk correction needs to be done on the entire chip at once, and before61 // signal levels are modified by the detrending. If crosstalk correction is62 // requested, the read-level for the images is set to CHIP.63 if (!ppImageCorrectCrosstalk(config, options, view)) {64 ESCAPE("Unable to perform crosstalk correction");65 }54 // crosstalk measurement needs to be done on the entire chip at once, and before 55 // signal levels are modified by the detrending. If crosstalk measurement is 56 // requested, the read-level for the images is set to CHIP. 57 if (!ppImageMeasureCrosstalk(config, options, view)) { 58 ESCAPE("Unable to perform crosstalk correction"); 59 } 60 61 // crosstalk correction needs to be done on the entire chip at once, and before 62 // signal levels are modified by the detrending. If crosstalk correction is 63 // requested, the read-level for the images is set to CHIP. 64 if (!ppImageCorrectCrosstalk(config, options, view)) { 65 ESCAPE("Unable to perform crosstalk correction"); 66 } 66 67 67 68 psTimerStart(TIMER_DETREND); … … 99 100 } 100 101 101 // perform the detrend analysis102 if (!ppImageParityFlip(config, options, view )) {102 // flip the image to match the native detector orientation (to match bias, flat, etc) 103 if (!ppImageParityFlip(config, options, view, true)) { 103 104 ESCAPE("Unable to detrend readout"); 104 105 } 105 106 // XXX TEST:107 // psphotSaveImage (NULL, readout->image, "test.image.fits");108 106 109 107 // XXX set the options->*Mask values here (after the mask images have been loaded … … 132 130 ppImageDetrendRecord(cell, config, options, view); 133 131 } 132 133 // process each of the readouts 134 // XXX reset the view to the first readout? 135 while ((readout = pmFPAviewNextReadout (view, input->fpa, 1)) != NULL) { 136 if (!readout->data_exists) { 137 continue; 138 } 139 // flip the image to match the raw readout orientation 140 if (!ppImageParityFlip(config, options, view, false)) { 141 ESCAPE("Unable to detrend readout"); 142 } 143 } 144 134 145 // free detrend images potentially in use: MASK, BIAS, DARK, SHUTTER, FLAT 135 146 if (!ppImageDetrendFree (config, view)) { … … 153 164 } 154 165 166 // Apply the pattern correction 167 if (options->doPatternRow || options->doPatternCell) { 168 if (!ppImageDetrendPatternApply(config,chip,view,options)) { 169 ESCAPE("Unable to apply pattern corrections"); 170 } 171 } 172 155 173 // measure various pixel-based statistics for this image 156 174 if (!ppImagePixelStats(config, stats, options, view)) { … … 161 179 } 162 180 timeDetrend += psTimerClear(TIMER_DETREND); 163 164 181 165 182 // we perform photometry on the readouts of this chip in the output … … 250 267 psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG"); 251 268 if (dump_file) { 252 pmConfigDump(config, dump_file); 269 if (!pmConfigDump(config, dump_file)) { 270 ESCAPE("Unable to dump configuration."); 271 } 253 272 } 254 273
Note:
See TracChangeset
for help on using the changeset viewer.
