IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 22, 2007, 5:09:19 PM (19 years ago)
Author:
magnier
Message:

catch errors from psEllipse functionssrc/objects/pmModelGroup.c

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/models/pmModel_QGAUSS.c

    r13803 r13960  
    226226    // force the axis ratio to be < 20.0
    227227    psEllipseAxes axes = psEllipseMomentsToAxes (emoments, 20.0);
     228
     229    if (!isfinite(axes.major)) return false;
     230    if (!isfinite(axes.minor)) return false;
     231    if (!isfinite(axes.theta)) return false;
     232
    228233    psEllipseShape shape = psEllipseAxesToShape (axes);
     234
     235    if (!isfinite(shape.sx))  return false;
     236    if (!isfinite(shape.sy))  return false;
     237    if (!isfinite(shape.sxy)) return false;
    229238
    230239    PAR[PM_PAR_SKY]  = moments->Sky;
Note: See TracChangeset for help on using the changeset viewer.