IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 6918


Ignore:
Timestamp:
Apr 19, 2006, 5:03:11 PM (20 years ago)
Author:
eugene
Message:

added count of excluded sources

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotApResid.c

    r6866 r6918  
    2020    // measure the aperture loss as a function of radius for PSF
    2121    float REF_RADIUS = psMetadataLookupF32 (&status, recipe, "PSF_REF_RADIUS");
    22     psf->growth = pmGrowthCurveAlloc (3.0, 50.0, REF_RADIUS);
     22    psf->growth = pmGrowthCurveAlloc (3.0, 100.0, REF_RADIUS);
    2323    psphotGrowthCurve (readout, psf);
    2424   
     
    8686    // 3hi/1lo sigma clipping on the rflux vs metric fit
    8787    psStats *stats = psStatsAlloc (PS_STAT_SAMPLE_MEDIAN | PS_STAT_SAMPLE_STDEV);
    88     stats->min = 3.0;
     88    stats->min = 2.0;
    8989    stats->max = 3.0;
    9090
     
    215215
    216216    // measure scatter for sources with dMag < 0.01 (S/N = 100)
     217    int Nkeep = 0;
    217218    psStats *residStats = psStatsAlloc (PS_STAT_SAMPLE_STDEV);
    218219    for (int i = 0; i < dMag->n; i++) {
    219220        if (dMag->data.F64[i] > 0.01) {
    220221            mask->data.U8[i] |= 0x02;
    221         }
     222        }
     223        if (! mask->data.U8[i]) Nkeep ++;
    222224    }
    223225    residStats  = psVectorStats (residStats, resid, NULL, mask, 0x03);
     
    241243
    242244    psLogMsg ("psphot.apresid", 3, "measure full-frame aperture residual: %f sec\n", psTimerMark ("psphot"));
    243     psLogMsg ("psphot.apresid", 4, "aperture residual: %f +/- %f : %f bias, %f skysat\n", psf->ApResid, psf->dApResid, psf->skyBias, psf->skySat);
     245    psLogMsg ("psphot.apresid", 4, "aperture residual: %f +/- %f : %f bias, %f skysat (%d of %d used)\n",
     246              psf->ApResid, psf->dApResid, psf->skyBias, psf->skySat, Nkeep, Npsf);
    244247    psLogMsg ("psphot.apresid", 4, "apresid trends: %f %f %f %f %f\n",
    245248              1e3*psf->ApTrend->coeff[1][0][0][0],
Note: See TracChangeset for help on using the changeset viewer.