IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 24, 2007, 11:41:08 AM (19 years ago)
Author:
eugene
Message:

updating error handling to distinguish data errors from fatal errors

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotRoughClass.c

    r10803 r11263  
    99
    1010    psfClump = pmSourcePSFClump (sources, recipe);
     11    if (psfClump.X < 0) {
     12        psError(PSPHOT_ERR_PROG, false, "programming error calling pmSourcePSFClump");
     13        return false;
     14    }
     15    if (!psfClump.X || !psfClump.Y) {
     16        psError(PSPHOT_ERR_DATA, true, "Failed to find a valid PSF clump");
     17        return false;
     18    }
    1119    psLogMsg ("psphot", 3, "psf clump  X,  Y: %f, %f\n", psfClump.X, psfClump.Y);
    1220    psLogMsg ("psphot", 3, "psf clump DX, DY: %f, %f\n", psfClump.dX, psfClump.dY);
    1321
    14     // did we find a valid psfClump?
    15     if (!psfClump.X || !psfClump.Y) {
    16         psError(PSPHOT_ERR_PSF, true, "Failed to find a valid PSF clump");
     22    // group into STAR, COSMIC, EXTENDED, SATURATED, etc.
     23    if (!pmSourceRoughClass (sources, recipe, psfClump)) {
     24        psError(PSPHOT_ERR_PROG, false, "programming error calling pmSourceRoughClass");
    1725        return false;
    1826    }
    19 
    20     // group into STAR, COSMIC, EXTENDED, SATURATED, etc.
    21     pmSourceRoughClass (sources, recipe, psfClump);
    2227
    2328    // optional printout of source moments only
Note: See TracChangeset for help on using the changeset viewer.