Changeset 31449 for trunk/ppSim/src/ppSimInsertGalaxies.c
- Timestamp:
- May 5, 2011, 10:40:58 AM (15 years ago)
- File:
-
- 1 edited
-
trunk/ppSim/src/ppSimInsertGalaxies.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppSim/src/ppSimInsertGalaxies.c
r29002 r31449 162 162 source->psfMag = -2.5*log10(galaxy->flux); 163 163 source->extMag = -2.5*log10(galaxy->flux); 164 source-> errMag= sqrt(Area*PS_SQR(roughNoise) + galaxy->flux) / galaxy->flux;164 source->psfMagErr = sqrt(Area*PS_SQR(roughNoise) + galaxy->flux) / galaxy->flux; 165 165 166 166 // insert the source flux in the image … … 173 173 174 174 float par8 = (model->params->n == 8) ? model->params->data.F32[7] : 0.0; 175 fprintf (outfile, "%8.3f %8.3f %10.2f %2d %7.3f %5.3f %5.3f %5.3f %5.3f %5.3f\n", galaxy->x, galaxy->y, flux, 1, source->psfMag, source-> errMag, axes.major, axes.minor, axes.theta, par8);175 fprintf (outfile, "%8.3f %8.3f %10.2f %2d %7.3f %5.3f %5.3f %5.3f %5.3f %5.3f\n", galaxy->x, galaxy->y, flux, 1, source->psfMag, source->psfMagErr, axes.major, axes.minor, axes.theta, par8); 176 176 177 177 psArrayAdd (sources, 100,source);
Note:
See TracChangeset
for help on using the changeset viewer.
