IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 3, 2008, 2:57:55 PM (18 years ago)
Author:
Paul Price
Message:

Catch bad recipe values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSub/src/ppSubReadout.c

    r20506 r20516  
    438438        psStatsOptions renormStdev = psStatsOptionFromString(psMetadataLookupStr(&mdok, recipe,
    439439                                                                                 "RENORM.STDEV"));
     440        if (renormMean == PS_STAT_NONE || renormStdev == PS_STAT_NONE) {
     441            psError(PS_ERR_BAD_PARAMETER_VALUE, false,
     442                    "Unable to parse renormalisation statistics from recipe.");
     443            psFree(outRO);
     444            return false;
     445        }
    440446        int renormNum = psMetadataLookupS32(&mdok, recipe, "RENORM.NUM"); // Number of samples
    441447        float renormWidth = psMetadataLookupS32(&mdok, recipe, "RENORM.WIDTH"); // Width of Gaussian phot
Note: See TracChangeset for help on using the changeset viewer.