IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31544


Ignore:
Timestamp:
May 12, 2011, 4:25:26 PM (15 years ago)
Author:
bills
Message:

integrate fix for problem reported in ticket #1484

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tags/ipp-20110505/psModules/src/imcombine/pmSubtractionStamps.c

    r31539 r31544  
    899899    float R2 = Sr2 / Sf2;
    900900
     901    if (!isfinite(R1) || !isfinite(R2)) {
     902        psError(PM_ERR_STAMPS, true, "Kron Radii are not finite (failure to converge).");
     903        psFree (stats);
     904        psFree (flux1);
     905        psFree (flux2);
     906        psFree (norm1);
     907        psFree (norm2);
     908        return false;
     909    }
     910
    901911    // Compare the Kron Radii (R1 & R2) to above to the FWHMs : if they are too discrepant, we will need to rescale
    902912    psLogMsg ("psModules.imcombine", PS_LOG_DETAIL, "Kron Radii vs FWHMs 1: fwhm: %f, kron %f\n", fwhm1, R1);
     
    907917    stamps->normWindow2 = 2.75*R2;
    908918    psLogMsg ("psModules.imcombine", PS_LOG_DETAIL, "Windows from Kron Radii: %f for 1, %f for 2\n", stamps->normWindow1, stamps->normWindow2);
     919
    909920
    910921    // if the calculated normWindows are too large, we will fall off the stamps.  In this case, we need to try again.
     
    919930        psFree (norm2);
    920931        return false;
    921     }
    922 
    923     if (!isfinite(R1) || !isfinite(R2)) {
    924         psError(PM_ERR_STAMPS, true, "Kron Radii are not finite (failure to converge).");
    925         psFree (stats);
    926         psFree (flux1);
    927         psFree (flux2);
    928         psFree (norm1);
    929         psFree (norm2);
    930         return false;
    931932    }
    932933
Note: See TracChangeset for help on using the changeset viewer.