IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33411 for trunk/psphot


Ignore:
Timestamp:
Mar 5, 2012, 4:56:39 PM (14 years ago)
Author:
bills
Message:

don't extrapolate limitRadius if the result goes beyond MAX_RADIUS

File:
1 edited

Legend:

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

    r33089 r33411  
    307307            // linearly interpolate to the radius at which we hit the sky, using the last flux and the limiting slope
    308308            if (isfinite(lastFlux)) {
    309                 limitRadius = lastRadius + lastFlux / 3.0;
     309                float interpolatedRadius = lastRadius + lastFlux / 3.0;
     310                if (interpolatedRadius < MAX_RADIUS) {
     311                    limitRadius = interpolatedRadius;
     312                } else {
     313                    // XXX should we keep going in this case?
     314                    limitRadius = meanRadius;
     315                }
    310316            } else {
    311317                limitRadius = meanRadius;
Note: See TracChangeset for help on using the changeset viewer.