IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 28, 2007, 4:34:31 PM (19 years ago)
Author:
eugene
Message:

fix edge errors in pmTrend

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourcePhotometry.c

    r15090 r15104  
    33 *  @author EAM, IfA; GLG, MHPCC
    44 *
    5  *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-09-29 00:15:51 $
     5 *  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-09-29 02:34:31 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    9898    // measure PSF model photometry
    9999    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);
    101102        if (!isfinite(fluxScale)) {
    102103            // XXX objects on the edge can be slightly outside -- if we get an
     
    120121    // for PSFs, correct both apMag and psfMag to same system, consistent with infinite flux star in aperture RADIUS
    121122    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);
    122125        source->psfMag += pmTrend2DEval (psf->ApTrend, x, y);
    123126    }
Note: See TracChangeset for help on using the changeset viewer.