IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19103


Ignore:
Timestamp:
Aug 17, 2008, 2:40:47 PM (18 years ago)
Author:
eugene
Message:

raise and error and exit on bad PSF model

File:
1 edited

Legend:

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

    r18857 r19103  
    55 *  @author EAM, IfA
    66 *
    7  *  @version $Revision: 1.59 $ $Name: not supported by cvs2svn $
    8  *  @date $Date: 2008-08-01 22:11:51 $
     7 *  @version $Revision: 1.60 $ $Name: not supported by cvs2svn $
     8 *  @date $Date: 2008-08-18 00:40:47 $
    99 *
    1010 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    223223    psTrace ("psphot.psftry", 3, "keeping %d of %ld PSF candidates (PSF)\n", Npsf, sources->n);
    224224
     225    if (Npsf == 0) {
     226        psError(PS_ERR_UNKNOWN, true, "No sources with good PSF fits after model is built.");
     227        psFree(psfTry);
     228        return NULL;
     229    }
     230
    225231    // measure the chi-square trend as a function of flux (PAR[PM_PAR_I0])
    226232    // this should be linear for Poisson errors and quadratic for constant sky errors
Note: See TracChangeset for help on using the changeset viewer.