Changeset 15104
- Timestamp:
- Sep 28, 2007, 4:34:31 PM (19 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourcePhotometry.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourcePhotometry.c
r15090 r15104 3 3 * @author EAM, IfA; GLG, MHPCC 4 4 * 5 * @version $Revision: 1.3 3$ $Name: not supported by cvs2svn $6 * @date $Date: 2007-09-29 0 0:15:51 $5 * @version $Revision: 1.34 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2007-09-29 02:34:31 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 98 98 // measure PSF model photometry 99 99 if (psf->FluxScale) { 100 double fluxScale = pmTrend2DEval (psf->FluxScale, x, y); 100 // the source peak pixel is guaranteed to be on the image, and only minimally different from the source center 101 double fluxScale = pmTrend2DEval (psf->ApTrend, (float)source->peak->x, (float)source->peak->y); 101 102 if (!isfinite(fluxScale)) { 102 103 // XXX objects on the edge can be slightly outside -- if we get an … … 120 121 // for PSFs, correct both apMag and psfMag to same system, consistent with infinite flux star in aperture RADIUS 121 122 if ((mode & PM_SOURCE_PHOT_APCORR) && isPSF && psf && psf->ApTrend) { 123 // the source peak pixel is guaranteed to be on the image, and only minimally different from the source center 124 double apTrend = pmTrend2DEval (psf->ApTrend, (float)source->peak->x, (float)source->peak->y); 122 125 source->psfMag += pmTrend2DEval (psf->ApTrend, x, y); 123 126 }
Note:
See TracChangeset
for help on using the changeset viewer.
