IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 17111


Ignore:
Timestamp:
Mar 24, 2008, 4:31:41 PM (18 years ago)
Author:
eugene
Message:

track number of measured values

File:
1 edited

Legend:

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

    r16820 r17111  
    55    bool status;
    66    int Next = 0;
    7     int Npsf = 0;
     7    int Nconvolve = 0;
     8    int Npetro = 0;
     9    int Nisophot = 0;
     10    int Nannuli = 0;
     11    int Nkron = 0;
    812
    913    // user-defined masks to test for good/bad pixels (build from recipe list if not yet set)
     
    1115    assert (maskVal);
    1216
    13     // S/N limit to perform full non-linear fits
     17    // perform full non-linear fits / extended source analysis?
    1418    if (!psMetadataLookupBool (&status, recipe, "EXTENDED_SOURCE_FITS")) {
    1519        psLogMsg ("psphot", PS_LOG_INFO, "skipping extended source measurements\n");
     
    5862
    5963        // if model is NULL, we don't have a starting guess
     64        // XXX this is probably not needed for objects where we only measure aperture-like terms
    6065        if (source->modelEXT == NULL) continue;
    6166
     
    7378            pmSourceCacheModel (source, maskVal); // XXX put this in the source model function?
    7479            psTrace ("psphot", 5, "psf-convolved model for source at %7.1f, %7.1f", source->moments->x, source->moments->y);
    75             Npsf ++;
     80            Nconvolve ++;
    7681        }
    7782
     
    9095            return false;
    9196        } else {
    92             psTrace ("psphot", 5, "psf-convolved model for source at %7.1f, %7.1f", source->moments->x, source->moments->y);
    93             Npsf ++;
     97            psTrace ("psphot", 5, "measured petrosian flux & radius for source at %7.1f, %7.1f", source->moments->x, source->moments->y);
     98            Npetro ++;
    9499        }
    95100
     
    99104        } else {
    100105            psTrace ("psphot", 5, "psf-convolved model for source at %7.1f, %7.1f", source->moments->x, source->moments->y);
    101             Npsf ++;
     106            Nisophot ++;
    102107        }
    103108
     
    107112        } else {
    108113            psTrace ("psphot", 5, "psf-convolved model for source at %7.1f, %7.1f", source->moments->x, source->moments->y);
    109             Npsf ++;
     114            Nannuli ++;
    110115        }
    111116
     
    115120        } else {
    116121            psTrace ("psphot", 5, "psf-convolved model for source at %7.1f, %7.1f", source->moments->x, source->moments->y);
    117             Npsf ++;
     122            Nkron ++;
    118123        }
    119124
     
    124129
    125130    psLogMsg ("psphot", PS_LOG_INFO, "extended source analysis: %f sec for %d objects\n", psTimerMark ("psphot"), Next);
     131    psLogMsg ("psphot", PS_LOG_INFO, "  %d convolved models\n", Nconvolve);
     132    psLogMsg ("psphot", PS_LOG_INFO, "  %d petrosian\n", Npetro);
     133    psLogMsg ("psphot", PS_LOG_INFO, "  %d isophotal\n", Nisophot);
     134    psLogMsg ("psphot", PS_LOG_INFO, "  %d annuli\n", Nannuli);
     135    psLogMsg ("psphot", PS_LOG_INFO, "  %d kron\n", Nkron);
    126136    return true;
    127137}
Note: See TracChangeset for help on using the changeset viewer.