- Timestamp:
- May 26, 2009, 1:59:32 PM (17 years ago)
- Location:
- branches/cnb_branches/cnb_branch_20090301
- Files:
-
- 4 edited
-
. (modified) (1 prop)
-
ppImage (modified) (1 prop)
-
ppImage/src (modified) (1 prop)
-
ppImage/src/ppImageLoop.c (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/cnb_branches/cnb_branch_20090301
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/ppImage
- Property svn:mergeinfo changed
-
branches/cnb_branches/cnb_branch_20090301/ppImage/src
- Property svn:ignore
-
old new 9 9 stamp-h1 10 10 .libs 11 ppImageVersionDefinitions.h
-
- Property svn:ignore
-
branches/cnb_branches/cnb_branch_20090301/ppImage/src/ppImageLoop.c
r23352 r24244 13 13 bool ppImageLoop(pmConfig *config, ppImageOptions *options) 14 14 { 15 psMetadata *stats = options->doStats ? psMetadataAlloc() : NULL;// Statistics to output15 psMetadata *stats = NULL; // Statistics to output 16 16 float timeDetrend = 0; // Amount of time spent in detrend 17 17 float timePhot = 0; // Amount of time spent in photometry 18 19 if (options->doStats) { 20 stats = psMetadataAlloc(); 21 psMetadataAddS32(stats, PS_LIST_TAIL, "QUALITY", 0, "No problems", 0); 22 } 18 23 19 24 bool status; // Status of MD lookup … … 46 51 } 47 52 53 // crosstalk measurement needs to be done on the entire chip at once, and before 54 // signal levels are modified by the detrending. If crosstalk measurement is 55 // 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 before 61 // signal levels are modified by the detrending. If crosstalk correction is 62 // 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 } 66 48 67 psTimerStart(TIMER_DETREND); 49 68 pmCell *cell; // Cell from chip … … 80 99 } 81 100 101 // perform the detrend analysis 102 if (!ppImageParityFlip(config, options, view)) { 103 ESCAPE("Unable to detrend readout"); 104 } 105 106 // XXX TEST: 107 // psphotSaveImage (NULL, readout->image, "test.image.fits"); 108 82 109 // XXX set the options->*Mask values here (after the mask images have been loaded 83 110 // and before any of the value are used) … … 134 161 psTimerStart(TIMER_PHOT); 135 162 if (options->doPhotom) { 136 if (!ppImagePhotom( config, view)) {163 if (!ppImagePhotom(stats, config, view)) { 137 164 ESCAPE("error running photometry."); 138 165 } … … 195 222 // this also performs the psastro file IO 196 223 if (options->doAstromChip || options->doAstromMosaic) { 197 if (!ppImageAstrom(config )) {224 if (!ppImageAstrom(config, stats)) { 198 225 ESCAPE("error running astrometry."); 199 226 } … … 218 245 psString dump_file = psMetadataLookupStr(&status, config->arguments, "DUMP_CONFIG"); 219 246 if (dump_file) { 220 pmConfigDump(config, input->fpa,dump_file);247 pmConfigDump(config, dump_file); 221 248 } 222 249
Note:
See TracChangeset
for help on using the changeset viewer.
