IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 8, 2008, 11:52:51 AM (18 years ago)
Author:
eugene
Message:

test for valid model

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmPSFEnvelope.c

    r19169 r19998  
    146146            // Get the radius
    147147            pmModel *model = pmModelFromPSFforXY(psf, x, y, PEAK_FLUX); // Model for source
     148            psAssert (model, "failed to generate model: should this be an error or not?");
    148149            float srcRadius = model->modelRadius(model->params, PS_SQR(WEIGHT_VAL)); // Radius for source
    149150            if (srcRadius > maxRadius) {
     
    296297        pmModel *fakeModel = pmModelFromPSFforXY(psf, (float)numCols / 2.0, (float)numRows / 2.0,
    297298                                                 1.0); // Fake model, with central intensity of 1.0
     299        psAssert (fakeModel, "failed to generate model: should this be an error or not?");
    298300        float flux0 = fakeModel->modelFlux(fakeModel->params); // Flux for central intensity of 1.0
    299301        for (int i = 0; i < numFakes; i++) {
Note: See TracChangeset for help on using the changeset viewer.