Changeset 13411 for trunk/psphot/src/psphotSkyReplace.c
- Timestamp:
- May 17, 2007, 11:53:28 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotSkyReplace.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotSkyReplace.c
r12792 r13411 3 3 // XXX make this an option? 4 4 // in order to successfully replace the sky, we must define a corresponding file... 5 bool psphotSkyReplace (pmConfig *config, pmFPAview *view) {5 bool psphotSkyReplace (pmConfig *config, const pmFPAview *view) { 6 6 7 7 psTimerStart ("psphot"); … … 22 22 // replace the background model 23 23 for (int j = 0; j < readout->image->numRows; j++) { 24 for (int i = 0; i < readout->image->numCols; i++) {25 if (!mask[j][i]) {26 image[j][i] += back[j][i];27 }28 }24 for (int i = 0; i < readout->image->numCols; i++) { 25 if (!mask[j][i]) { 26 image[j][i] += back[j][i]; 27 } 28 } 29 29 } 30 30 psLogMsg ("psphot.sky", PS_LOG_DETAIL, "replace background flux : %f sec\n", psTimerMark ("psphot"));
Note:
See TracChangeset
for help on using the changeset viewer.
