Changeset 20367 for trunk/ppSim/src/ppSimInsertStars.c
- Timestamp:
- Oct 24, 2008, 2:54:19 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/ppSim/src/ppSimInsertStars.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim/src/ppSimInsertStars.c
r20318 r20367 118 118 psF64 Area = 2.0 * M_PI * axes.major * axes.minor; 119 119 120 source->psfMag = -2.5*log10(flux); 120 // this value is the pure (input) flux, and is saved in the output source cmf files 121 source->psfMag = -2.5*log10(star->flux); 121 122 source->errMag = sqrt(Area*PS_SQR(roughNoise) + flux) / flux; 122 123 … … 125 126 // insert the source flux in the image 126 127 pmSourceAddWithOffset (source, PM_MODEL_OP_FULL, 0xff, dX, dY); 128 129 // insert the source flux in the noise image 127 130 pmSourceAddWithOffset (source, PM_MODEL_OP_FULL | PM_MODEL_OP_NOISE, 0xff, dX, dY); 128 131
Note:
See TracChangeset
for help on using the changeset viewer.
