Changeset 25383 for trunk/psphot/src/psphotAddNoise.c
- Timestamp:
- Sep 15, 2009, 12:45:01 PM (17 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
psphot/src/psphotAddNoise.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/pap (added) merged: 25238,25241-25243,25246,25258-25267,25278,25302,25309-25312,25326-25329,25331-25339
- Property svn:mergeinfo changed
-
trunk/psphot/src/psphotAddNoise.c
r21519 r25383 1 1 # include "psphotInternal.h" 2 2 3 bool psphotAddNoise (pmReadout *readout, psArray *sources,psMetadata *recipe) {3 bool psphotAddNoise (pmReadout *readout, const psArray *sources, const psMetadata *recipe) { 4 4 return psphotAddOrSubNoise (readout, sources, recipe, true); 5 5 } 6 6 7 bool psphotSubNoise (pmReadout *readout, psArray *sources,psMetadata *recipe) {7 bool psphotSubNoise (pmReadout *readout, const psArray *sources, const psMetadata *recipe) { 8 8 return psphotAddOrSubNoise (readout, sources, recipe, false); 9 9 } 10 10 11 bool psphotAddOrSubNoise (pmReadout *readout, psArray *sources,psMetadata *recipe, bool add) {11 bool psphotAddOrSubNoise (pmReadout *readout, const psArray *sources, const psMetadata *recipe, bool add) { 12 12 13 13 bool status = false; … … 42 42 PS_ASSERT (status, false); 43 43 if (isfinite(GAIN)) { 44 FACTOR /= GAIN;44 FACTOR /= GAIN; 45 45 } 46 46 … … 70 70 oldshape.sxy = PAR[PM_PAR_SXY]; 71 71 72 // XXX can this be done more intelligently?73 if (oldI0 == 0.0) continue;74 if (!isfinite(oldI0)) continue;72 // XXX can this be done more intelligently? 73 if (oldI0 == 0.0) continue; 74 if (!isfinite(oldI0)) continue; 75 75 76 76 // increase size and height of source
Note:
See TracChangeset
for help on using the changeset viewer.
