Changeset 25671
- Timestamp:
- Sep 29, 2009, 4:11:51 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psphot/src/psphotMakeResiduals.c
r25645 r25671 236 236 } 237 237 238 float radius = hypot((ox - 0.5*resid->Ro->numCols), (oy - 0.5*resid->Ro->numRows)); 239 if (radius > radiusMax) { 240 resid->mask->data.PM_TYPE_RESID_MASK_DATA[oy][ox] = 1; 241 continue; 242 } 243 238 244 resid->Ro->data.F32[oy][ox] = psStatsGetValue(fluxStats, statOption); 239 245 resid->Rx->data.F32[oy][ox] = resid->Ry->data.F32[oy][ox] = 0.0; … … 250 256 resid->mask->data.PM_TYPE_RESID_MASK_DATA[oy][ox] = 1; 251 257 } 258 } else { 259 assert (SPATIAL_ORDER == 1); 252 260 253 261 float radius = hypot((ox - 0.5*resid->Ro->numCols), (oy - 0.5*resid->Ro->numRows)); 254 262 if (radius > radiusMax) { 255 263 resid->mask->data.PM_TYPE_RESID_MASK_DATA[oy][ox] = 1; 256 } 257 } else {258 assert (SPATIAL_ORDER == 1); 264 continue; 265 } 266 259 267 psImageInit(A, 0.0); 260 268 psVectorInit(B, 0.0); … … 279 287 280 288 if (!psMatrixGJSolve(A, B)) { 281 psError(PSPHOT_ERR_PSF, false, "Singular matrix solving for (y,x) = (%d,%d)'s residuals", 282 oy, ox); 283 psFree(resid); resid = NULL; 284 break; 289 resid->mask->data.PM_TYPE_RESID_MASK_DATA[oy][ox] = 1; 290 psWarning("Singular matrix solving for (y,x) = (%d,%d)'s residuals, masking", oy, ox); 291 continue; 285 292 } 286 293
Note:
See TracChangeset
for help on using the changeset viewer.
