Changeset 23989 for trunk/psModules/src/objects/pmPSFtry.c
- Timestamp:
- Apr 28, 2009, 11:21:56 AM (17 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmPSFtry.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmPSFtry.c
r21183 r23989 211 211 212 212 if (Next == 0) { 213 psError(PS_ERR_UNKNOWN, true, "No sources with good extended fits from which to determine PSF.");213 psError(PS_ERR_UNKNOWN, false, "No sources with good extended fits from which to determine PSF."); 214 214 psFree(psfTry); 215 215 return NULL; … … 282 282 283 283 if (Npsf == 0) { 284 psError(PS_ERR_UNKNOWN, true, "No sources with good PSF fits after model is built.");284 psError(PS_ERR_UNKNOWN, false, "No sources with good PSF fits after model is built."); 285 285 psFree(psfTry); 286 286 return NULL; … … 643 643 } 644 644 if (entryMin == -1) { 645 psError (PS_ERR_UNKNOWN, true, "failed to find image map for shape params");645 psError (PS_ERR_UNKNOWN, false, "failed to find image map for shape params"); 646 646 return false; 647 647 } … … 958 958 float dEsquare = 0.0; 959 959 psStatsInit (stats); 960 psVectorStats (stats, e0res, NULL, mask, maskValue); 960 if (!psVectorStats (stats, e0res, NULL, mask, maskValue)) { 961 psError(PS_ERR_UNKNOWN, false, "failure to measure stats"); 962 return false; 963 } 961 964 dEsquare += PS_SQR(psStatsGetValue(stats, stdevOpt)); 962 965 963 966 psStatsInit (stats); 964 psVectorStats (stats, e1res, NULL, mask, maskValue); 967 if (!psVectorStats (stats, e1res, NULL, mask, maskValue)) { 968 psError(PS_ERR_UNKNOWN, false, "failure to measure stats"); 969 return false; 970 } 965 971 dEsquare += PS_SQR(psStatsGetValue(stats, stdevOpt)); 966 972 967 973 psStatsInit (stats); 968 psVectorStats (stats, e2res, NULL, mask, maskValue); 974 if (!psVectorStats (stats, e2res, NULL, mask, maskValue)) { 975 psError(PS_ERR_UNKNOWN, false, "failure to measure stats"); 976 return false; 977 } 969 978 dEsquare += PS_SQR(psStatsGetValue(stats, stdevOpt)); 970 979 … … 1018 1027 float dEsquare = 0.0; 1019 1028 psStatsInit (statsS); 1020 psVectorStats (statsS, dE0subset, NULL, mkSubset, 0xff); 1029 if (!psVectorStats (statsS, dE0subset, NULL, mkSubset, 0xff)) { 1030 } 1021 1031 dEsquare += PS_SQR(psStatsGetValue(statsS, stdevOpt)); 1022 1032 1023 1033 psStatsInit (statsS); 1024 psVectorStats (statsS, dE1subset, NULL, mkSubset, 0xff); 1025 dEsquare += PS_SQR(psStatsGetValue(statsS, stdevOpt)); 1034 if (!psVectorStats (statsS, dE1subset, NULL, mkSubset, 0xff)) { 1035 psError(PS_ERR_UNKNOWN, false, "failure to measure stats"); 1036 return false; 1037 } 1038 dEsquare += PS_SQR(psStatsGetValue(statsS, stdevOpt)); 1026 1039 1027 1040 psStatsInit (statsS); 1028 psVectorStats (statsS, dE2subset, NULL, mkSubset, 0xff); 1041 if (!psVectorStats (statsS, dE2subset, NULL, mkSubset, 0xff)) { 1042 psError(PS_ERR_UNKNOWN, false, "failure to measure stats"); 1043 return false; 1044 } 1029 1045 dEsquare += PS_SQR(psStatsGetValue(statsS, stdevOpt)); 1030 1046
Note:
See TracChangeset
for help on using the changeset viewer.
