IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 28, 2007, 3:41:13 PM (19 years ago)
Author:
eugene
Message:

adding extended source measurements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branch_20071023/psphot/src/psphotMakeResiduals.c

    r15359 r15400  
    2828
    2929    float nSigma = psMetadataLookupF32(&status, recipe, "PSF.RESIDUALS.NSIGMA");
     30    PS_ASSERT (status, false);
     31
     32    float pixelSN = psMetadataLookupF32(&status, recipe, "PSF.RESIDUALS.PIX.SN");
    3033    PS_ASSERT (status, false);
    3134
     
    195198                //resid->weight->data.F32[oy][ox] = fluxStats->sampleStdev;
    196199
    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;
    200202                }
    201203
     
    234236                resid->Ry->data.F32[oy][ox] = B->data.F64[2];
    235237
    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;
    239241                }
    240242                //resid->weight->data.F32[oy][ox] = XXX;
Note: See TracChangeset for help on using the changeset viewer.