- Timestamp:
- Feb 10, 2010, 4:20:05 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20091201/psphot/src/psphotModelBackground.c
r26808 r26878 152 152 // XXXX we can thread this here by running blocks in parallel 153 153 154 int nFailures = 0; 155 psImageBackgroundInit(); 156 154 157 // measure clipped median for subimages 155 158 psRegion ruffRegion = {0,0,0,0}; … … 218 221 stats->options = PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV; 219 222 if (!psImageBackground(stats, &sample, subset, submask, maskVal, rng)) { 220 // psLogMsg ("psphot", PS_LOG_WARN, "Failed to estimate background using ROBUST_MEDIAN for " 221 // "(%dx%d, (row0,col0) = (%d,%d)", 222 // subset->numRows, subset->numCols, subset->row0, subset->col0); 223 if ((nFailures < 3) || (nFailures % 100 == 0)) { 224 psLogMsg ("psphot", PS_LOG_WARN, "Failed to estimate background using ROBUST_MEDIAN for " 225 "(%dx%d, (row0,col0) = (%d,%d)", 226 subset->numRows, subset->numCols, subset->row0, subset->col0); 227 } 228 nFailures ++; 223 229 modelData[iy][ix] = modelStdevData[iy][ix] = NAN; 224 230 } else { … … 239 245 psFree (submask); 240 246 } 247 } 248 249 if (nFailures) { 250 psLogMsg ("psphot", PS_LOG_WARN, "Failed to estimate background for %d of %d subimages", nFailures, (model->numRows*model->numCols)); 241 251 } 242 252
Note:
See TracChangeset
for help on using the changeset viewer.
