IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8437


Ignore:
Timestamp:
Aug 21, 2006, 4:56:17 AM (20 years ago)
Author:
rhl
Message:

Detect PSF problems

Location:
trunk/psphot/src
Files:
3 edited

Legend:

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

    r8139 r8437  
    3636    }
    3737    psLogMsg ("psphot.pspsf", 4, "selected candidate %d PSF objects\n", stars->n);
     38
     39    if (stars->n == 0) {
     40        psError(PSPHOT_ERR_PSF, true, "Failed to find any PSF candidates");
     41        return NULL;
     42    }
    3843
    3944    // get the fixed PSF fit radius
  • trunk/psphot/src/psphotErrorCodes.dat

    r7504 r8437  
    1010FITS_WCS                Error interpreting FITS WCS information
    1111PHOTOM                  Problem in photometry
     12PSF                     Problem in PSF
  • trunk/psphot/src/psphotRoughClass.c

    r7758 r8437  
    1111
    1212    // did we find a valid psfClump?
    13     if (!psfClump.X || !psfClump.Y) return false;
     13    if (!psfClump.X || !psfClump.Y) {
     14        psError(PSPHOT_ERR_PSF, true, "Failed to find a valid PSF clump");
     15        return false;
     16    }
    1417
    1518    // group into STAR, COSMIC, EXTENDED, SATURATED, etc.
Note: See TracChangeset for help on using the changeset viewer.