IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 33412 for tags/ipp-20120216


Ignore:
Timestamp:
Mar 5, 2012, 5:01:25 PM (14 years ago)
Author:
bills
Message:

Pick up a couple of fixes to psphotStackProblems from the trunk including one of the causes of
the memory explosion

Location:
tags/ipp-20120216/psphot
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20120216/psphot

  • tags/ipp-20120216/psphot/src

  • tags/ipp-20120216/psphot/src/psphotRadialProfileWings.c

    r33089 r33412  
    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;
  • tags/ipp-20120216/psphot/src/psphotSersicModelClass.c

    r32348 r33412  
    546546    // set the normalization by linear fit between model and data
    547547    psphotSersicModelNorm (pcm, source);
     548    if (!isfinite(PAR[PM_PAR_I0])) {
     549        fprintf(stderr, "psphotSersicModelClassGuessPCM: psphotSerisicModelNorm set PM_PAR_I0 to NAN\n");
     550        return false;
     551    }
    548552
    549553    if (TIMING) { t5 = psTimerMark ("SersicGuess"); }
  • tags/ipp-20120216/psphot/src/psphotStackImageLoop.c

    • Property svn:mergeinfo changed (with no actual effect on merging)
Note: See TracChangeset for help on using the changeset viewer.