- Timestamp:
- Jun 6, 2011, 1:56:22 PM (15 years ago)
- Location:
- branches/czw_branch/20110406
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppSim/src/ppSimInsertStars.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20110406
- Property svn:mergeinfo changed
-
branches/czw_branch/20110406/ppSim/src/ppSimInsertStars.c
r29002 r31606 121 121 122 122 source->psfMag = -2.5*log10(star->flux); 123 source-> errMag= sqrt(Area*PS_SQR(roughNoise) + flux) / flux;123 source->psfMagErr = sqrt(Area*PS_SQR(roughNoise) + flux) / flux; 124 124 125 125 // set the expected model errors 126 model->dparams->data.F32[PM_PAR_I0] = source-> errMag* model->params->data.F32[PM_PAR_I0];126 model->dparams->data.F32[PM_PAR_I0] = source->psfMagErr * model->params->data.F32[PM_PAR_I0]; 127 127 128 128 float par8 = (model->params->n == 8) ? model->params->data.F32[7] : 0.0; 129 fprintf (outfile, "%8.3f %8.3f %10.2f %2d %7.3f %5.3f %5.3f %5.3f %5.3f %5.3f\n", star->x, star->y, star->flux, 0, source->psfMag, source-> errMag, axes.major, axes.minor, axes.theta, par8);129 fprintf (outfile, "%8.3f %8.3f %10.2f %2d %7.3f %5.3f %5.3f %5.3f %5.3f %5.3f\n", star->x, star->y, star->flux, 0, source->psfMag, source->psfMagErr, axes.major, axes.minor, axes.theta, par8); 130 130 131 131 // if psfConvolve is TRUE, we will (elsewhere) convolve the image we a PSF
Note:
See TracChangeset
for help on using the changeset viewer.
