IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9516


Ignore:
Timestamp:
Oct 12, 2006, 11:45:42 AM (20 years ago)
Author:
eugene
Message:

added error case for ApResid

File:
1 edited

Legend:

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

    r9270 r9516  
    8787              psTimerMark ("psphot"), Npsf, Nskip, Nfail, sources->n - Npsf - Nskip - Nfail);
    8888
     89    // XXX choose a better value here?
     90    if (Npsf < 5) {
     91        psError(PSPHOT_ERR_APERTURE, true, "no valid aperture residual sources, giving up");
     92        return false;
     93    }
     94
    8995    // APTREND options : NONE SKYBIAS XY_LIN XY_QUAD SKY_XY_LIN FULL
    9096    char *ApTrendOption = psMetadataLookupPtr (&status, recipe, "APTREND");
Note: See TracChangeset for help on using the changeset viewer.