IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 19, 2009, 12:16:54 PM (17 years ago)
Author:
eugene
Message:

updates to make radial profiles a bit more robust

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20090715/psphot/src/psphotPetrosianVisual.c

    r25105 r25128  
    2626        graphdata->xmin = graphdata->xmax = xVec->data.F32[0];
    2727        for (int i = 1; i < xVec->n; i++) {
     28            if (!isfinite(xVec->data.F32[i])) continue;
    2829            graphdata->xmin = PS_MIN (graphdata->xmin, xVec->data.F32[i]);
    2930            graphdata->xmax = PS_MAX (graphdata->xmax, xVec->data.F32[i]);
     
    3637        graphdata->ymin = graphdata->ymax = yVec->data.F32[0];
    3738        for (int i = 1; i < yVec->n; i++) {
     39            if (!isfinite(yVec->data.F32[i])) continue;
    3840            graphdata->ymin = PS_MIN (graphdata->ymin, yVec->data.F32[i]);
    3941            graphdata->ymax = PS_MAX (graphdata->ymax, yVec->data.F32[i]);
Note: See TracChangeset for help on using the changeset viewer.