Changeset 28304 for branches/czw_branch/20100519/ppSim/src/ppSimLoop.c
- Timestamp:
- Jun 10, 2010, 6:28:51 PM (16 years ago)
- Location:
- branches/czw_branch/20100519
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppSim/src/ppSimLoop.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20100519
- Property svn:mergeinfo changed
-
branches/czw_branch/20100519/ppSim/src/ppSimLoop.c
r26900 r28304 30 30 ppSimType type = ppSimTypeFromString (typeStr); // Type of image to simulate 31 31 int binning = psMetadataLookupS32(NULL, recipe, "BINNING"); // Binning in x and y 32 33 bool psfConvolve = psMetadataLookupBool(NULL, recipe, "PSF.CONVOLVE"); // smooth the image with the PSF? 32 34 33 35 ppSimUpdateConceptsFPA (fpa, config); … … 155 157 psFree(expCorr); 156 158 159 // we have two options for generating images which have a PSF: 160 // 1) lay down stars with the PSF model applied : in this case, galaxies do NOT have the PSF 161 // 2) lay down delta functions for stars and smooth the image with a PSF : in this case, the stars land at integer pixel locations 162 if (psfConvolve) { 163 if (!ppSimSmoothReadout(readout, recipe)) ESCAPE (PS_ERR_UNKNOWN, "problem smoothing image"); 164 } 165 157 166 done: 158 167 if (!ppSimAddNoise(readout->image, readout->variance, cell, config, rng)) ESCAPE (PS_ERR_UNKNOWN, "problem adding noise");
Note:
See TracChangeset
for help on using the changeset viewer.
