- Timestamp:
- May 11, 2010, 3:27:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/psphot.20100506/src/psphotStackReadout.c
r27909 r27919 39 39 // generate a background model (median, smoothed image) 40 40 // XXX I think this is not defined correctly for an array of images. 41 // XXX probably need to subtract the model (same model?) for both RAW and OUT 41 42 if (!psphotModelBackground (config, view, STACK_RAW)) { 42 43 return psphotReadoutCleanup (config, view, STACK_OUT); … … 56 57 } 57 58 58 if (!psphotStackChisqImage(config, view, STACK_RAW )) {59 if (!psphotStackChisqImage(config, view, STACK_RAW, STACK_OUT)) { 59 60 psError (PSPHOT_ERR_UNKNOWN, false, "failure to generate chisq image"); 60 61 return psphotReadoutCleanup (config, view, STACK_OUT); … … 68 69 if (!psphotFindDetections (config, view, STACK_RAW, true)) { // pass 1 69 70 // this only happens if we had an error in psphotFindDetections 71 psError (PSPHOT_ERR_UNKNOWN, false, "failure in peak analysis"); 72 return psphotReadoutCleanup (config, view, STACK_OUT); 73 } 74 75 // XXX do this now or below? 76 // remove chisq image from config->file:PSPHOT.INPUT (why?) 77 // psphotStackRemoveChisqFromInputs(config, STACK_RAW); 78 79 // copy the detections from RAW to OUT 80 if (!psphotCopySources (config, view, STACK_OUT, STACK_RAW)) { 70 81 psError (PSPHOT_ERR_UNKNOWN, false, "failure in peak analysis"); 71 82 return psphotReadoutCleanup (config, view, STACK_OUT); … … 170 181 psphotSourceFreePixels (config, view, STACK_OUT); 171 182 183 // XXX do this now or above? 172 184 // remove chisq image from config->file:PSPHOT.INPUT (why?) 173 185 psphotStackRemoveChisqFromInputs(config, STACK_RAW);
Note:
See TracChangeset
for help on using the changeset viewer.
