IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 15, 2014, 9:51:56 AM (12 years ago)
Author:
bills
Message:

detect failure to find psf model and exit gracefully
if no sources pass selection cuts in lensing code do not fault

File:
1 edited

Legend:

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

    r36623 r36662  
    193193    // set the max order (0 = constant) which the number of psf stars can support:
    194194    // we require only 3 stars for n = 0, increase stars / cell for higher order
     195    if (Npsf < 3) {
     196        psLogMsg ("psphot", PS_LOG_INFO, "no sources passed selection criteria, skipping lensing psf trends");
     197        return true;
     198    }
    195199    int LensingTrendOrder = 0;
    196200    if (Npsf >=  16) LensingTrendOrder = 1; // 4 cells
Note: See TracChangeset for help on using the changeset viewer.