Changeset 31543
- Timestamp:
- May 12, 2011, 4:24:24 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/imcombine/pmSubtractionStamps.c
r31537 r31543 899 899 float R2 = Sr2 / Sf2; 900 900 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 901 911 // Compare the Kron Radii (R1 & R2) to above to the FWHMs : if they are too discrepant, we will need to rescale 902 912 psLogMsg ("psModules.imcombine", PS_LOG_DETAIL, "Kron Radii vs FWHMs 1: fwhm: %f, kron %f\n", fwhm1, R1); … … 907 917 stamps->normWindow2 = 2.75*R2; 908 918 psLogMsg ("psModules.imcombine", PS_LOG_DETAIL, "Windows from Kron Radii: %f for 1, %f for 2\n", stamps->normWindow1, stamps->normWindow2); 919 909 920 910 921 // if the calculated normWindows are too large, we will fall off the stamps. In this case, we need to try again. … … 919 930 psFree (norm2); 920 931 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;931 932 } 932 933
Note:
See TracChangeset
for help on using the changeset viewer.
