IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 8138


Ignore:
Timestamp:
Aug 4, 2006, 2:38:15 AM (20 years ago)
Author:
eugene
Message:

track failures in log message, trace for source results

File:
1 edited

Legend:

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

    r6948 r8138  
    55
    66    int Nfit = 0;
     7    int Npsf = 0;
     8    int Next = 0;
     9    int Nfail = 0;
    710    bool status;
    811
     
    4952        // skip sources which are insignificant flux?
    5053        if (source->modelPSF->params->data.F32[1] < 0.1) {
    51             psTrace ("psphotBlendFit", 5, "skipping near zero source: %f, %f : %f\n",
     54            psTrace ("psphotBlendFit", 5, "skipping near-zero source: %f, %f : %f\n",
    5255                     source->modelPSF->params->data.F32[1],
    5356                     source->modelPSF->params->data.F32[2],
     
    6063        Nfit ++;
    6164
    62         psTrace ("psphot.blend", 5, "trying source at %f, %f\n", source->moments->x, source->moments->y);
    63        
    6465        // try fitting PSFs, then try extended sources
    65         if (psphotFitBlend (readout, source, psf)) continue;
    66         if (psphotFitBlob (readout, source, sources, psf)) continue;
     66        if (psphotFitBlend (readout, source, psf)) {
     67            psTrace ("psphotBlendFit", 5, "source at %7.1f, %7.1f is psf", source->moments->x, source->moments->y);
     68            Npsf ++;
     69            continue;
     70        }
     71        if (psphotFitBlob (readout, source, sources, psf)) {
     72            psTrace ("psphotBlendFit", 5, "source at %7.1f, %7.1f is ext", source->moments->x, source->moments->y);
     73            Next ++;
     74            continue;
     75        }
    6776
    68         psTrace ("psphot.blend", 5, "failed fits\n");
     77        psTrace ("psphotBlendFit", 5, "source at %7.1f, %7.1f failed", source->moments->x, source->moments->y);
     78        Nfail ++;
    6979
    7080        // re-subtract PSF for object, leave local sky
     
    7484    }
    7585
    76     psLogMsg ("psphot", 3, "fit PSF models: %f sec for %d objects (%d total)\n", psTimerMark ("psphot"), Nfit, sources->n);
     86    psLogMsg ("psphot", 3, "fit models: %f sec for %d objects (%d psf, %d ext, %d failed, %d skipped)\n", psTimerMark ("psphot"), Nfit, Npsf, Next, Nfail, sources->n - Nfit);
    7787    return (true);
    7888}
Note: See TracChangeset for help on using the changeset viewer.