IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 17, 2006, 7:24:11 AM (20 years ago)
Author:
eugene
Message:

adjustments for improved speed

File:
1 edited

Legend:

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

    r6862 r6866  
    33bool psphotMagnitudes (psArray *sources, psMetadata *recipe, pmPSF *psf) {
    44
     5    bool status = false;
     6    int Nap = 0;
     7
    58    psTimerStart ("psphot");
     9
     10    pmSourceMagnitudesInit (recipe);
    611
    712    for (int i = 0; i < sources->n; i++) {
    813        pmSource *source = (pmSource *) sources->data[i];
    9         pmSourceMagnitudes (source, psf, true, true);
     14        status = pmSourceMagnitudes (source, psf, PM_SOURCE_PHOT_GROWTH | PM_SOURCE_PHOT_APCORR | PM_SOURCE_PHOT_WEIGHT);
     15        // status = pmSourceMagnitudes (source, psf, PM_SOURCE_PHOT_GROWTH | PM_SOURCE_PHOT_APCORR);
     16        if (status) Nap ++;
    1017    }   
    1118
    12     psLogMsg ("psphot.magnitudes", 4, "measure magnitudes : %f sec for %d objects\n", psTimerMark ("psphot"), sources->n);
     19    psLogMsg ("psphot.magnitudes", 4, "measure magnitudes : %f sec for %d objects (%d with apertures)\n", psTimerMark ("psphot"), sources->n, Nap);
    1320    return true;
    1421}
Note: See TracChangeset for help on using the changeset viewer.