IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 22, 2007, 11:45:00 AM (19 years ago)
Author:
magnier
Message:

poor aperture magnitude should not cause psphot to die

File:
1 edited

Legend:

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

    r13423 r13472  
    33 *  @author EAM, IfA; GLG, MHPCC
    44 *
    5  *  @version $Revision: 1.26 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2007-05-18 14:02:48 $
     5 *  @version $Revision: 1.27 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2007-05-22 21:45:00 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    195195    // measure object aperture photometry
    196196    status = pmSourcePhotometryAper  (&source->apMag, model, flux, source->maskObj);
     197    if (!status) {
     198        psErrorCode last = psErrorCodeLast();
     199        if (last == PM_ERR_PHOTOM) {
     200            // the aper mag was undefined (flux < 0).  bad object, but
     201            // don't keep the error on the stack
     202            psErrorClear();
     203        }
     204    }
    197205
    198206    // for PSFs, correct both apMag and psfMag to same system, consistent with infinite flux star in aperture RADIUS
Note: See TracChangeset for help on using the changeset viewer.