- Timestamp:
- Oct 28, 2007, 3:41:13 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branch_20071023/psphot/src/psphotMakeResiduals.c
r15359 r15400 28 28 29 29 float nSigma = psMetadataLookupF32(&status, recipe, "PSF.RESIDUALS.NSIGMA"); 30 PS_ASSERT (status, false); 31 32 float pixelSN = psMetadataLookupF32(&status, recipe, "PSF.RESIDUALS.PIX.SN"); 30 33 PS_ASSERT (status, false); 31 34 … … 195 198 //resid->weight->data.F32[oy][ox] = fluxStats->sampleStdev; 196 199 197 // if value < NRESID_SIGMA*sigma, mask pixel in resid map 198 if (resid->Ro->data.F32[oy][ox] < NRESID_SIGMA*fluxStats->sampleStdev) { 199 resid->mask->data.U8[oy][ox] = RESID_SIG_MASK; 200 if (resid->Ro->data.F32[oy][ox] < pixelSN*fluxStats->sampleStdev) { 201 resid->mask->data.U8[oy][ox] = 1; 200 202 } 201 203 … … 234 236 resid->Ry->data.F32[oy][ox] = B->data.F64[2]; 235 237 236 dRo = sqrt(A->data.F32[0][0]);237 if (resid->Ro->data.F32[oy][ox] < NRESID_SIGMA*dRo) {238 resid->mask->data.U8[oy][ox] = RESID_SIG_MASK;238 float dRo = sqrt(A->data.F32[0][0]); 239 if (resid->Ro->data.F32[oy][ox] < pixelSN*dRo) { 240 resid->mask->data.U8[oy][ox] = 1; 239 241 } 240 242 //resid->weight->data.F32[oy][ox] = XXX;
Note:
See TracChangeset
for help on using the changeset viewer.
