Changeset 25505
- Timestamp:
- Sep 23, 2009, 12:36:13 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20090715/psphot/src/psphotMakeResiduals.c
r23989 r25505 31 31 32 32 float pixelSN = psMetadataLookupF32(&status, recipe, "PSF.RESIDUALS.PIX.SN"); 33 PS_ASSERT (status, false); 34 35 float radiusMax = psMetadataLookupF32(&status, recipe, "PSF.RESIDUALS.RADIUS"); 33 36 PS_ASSERT (status, false); 34 37 … … 249 252 } 250 253 251 // fprintf (stderr, "res: %2d %2d : %6.4f %6.4f %6.4f %3d %1d\n", ox, oy, resid->Ro->data.F32[oy][ox], fluxStats->sampleStdev, fluxStats->sampleStdev/sqrt(nKeep), nKeep, resid->mask->data.PM_TYPE_RESID_MASK_DATA[oy][ox]); 254 float radius = hypot((ox - 0.5*resid->Ro->numCols), (oy - 0.5*resid->Ro->numRows)); 255 if (radius > radiusMax) { 256 resid->mask->data.PM_TYPE_RESID_MASK_DATA[oy][ox] = 1; 257 } 258 259 fprintf (stderr, "res: %2d %2d : %6.4f %6.4f %6.4f %3d %1d\n", ox, oy, resid->Ro->data.F32[oy][ox], fluxStats->sampleStdev, fluxStats->sampleStdev/sqrt(nKeep), nKeep, resid->mask->data.PM_TYPE_RESID_MASK_DATA[oy][ox]); 252 260 253 261 } else { … … 286 294 287 295 float dRo = sqrt(A->data.F32[0][0]); 288 //fprintf (stderr, "res: %2d %2d : %6.4f %6.4f %6.4f %3d %1d\n",289 //ox, oy, resid->Ro->data.F32[oy][ox], dRo, dRo/sqrt(nKeep), nKeep, resid->mask->data.PM_TYPE_RESID_MASK_DATA[oy][ox]);296 fprintf (stderr, "res: %2d %2d : %6.4f %6.4f %6.4f %3d %1d\n", 297 ox, oy, resid->Ro->data.F32[oy][ox], dRo, dRo/sqrt(nKeep), nKeep, resid->mask->data.PM_TYPE_RESID_MASK_DATA[oy][ox]); 290 298 291 299 if (fabs(resid->Ro->data.F32[oy][ox]) < pixelSN*dRo/sqrt(nKeep)) {
Note:
See TracChangeset
for help on using the changeset viewer.
