IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Aug 29, 2005, 5:44:55 PM (21 years ago)
Author:
eugene
Message:

various psphot updates

File:
1 edited

Legend:

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

    r4642 r4901  
    2424
    2525    psTimerStart ("psphot");
     26
     27    float dt = 0;
     28    float dT = 0;
     29    float dT2 = 0;
     30    int dTn = 0;
     31
    2632    for (int i = 0; i < sources->n; i++) {
    2733        psSource *source = sources->data[i];
     
    7278        // fit as FLT, not PSF (skip poor fits)
    7379        psImageKeepCircle (source->mask, x, y, model->radius, OR, 0x80);
     80        psTimerStart ("galfit");
    7481        status = pmSourceFitModel_EAM (source, model, false);
     82        dt = psTimerMark ("galfit");
     83        dT += dt;
     84        dT2 += dt*dt;
     85        dTn ++;
    7586        psImageKeepCircle (source->mask, x, y, model->radius, AND, 0x7f);
    7687        if (!status) {
     
    105116
    106117    }
     118    dt = dT / dTn;
     119    fprintf (stderr, "dt: %f +/- %f\n", dt, sqrt(dT2/dTn - PS_SQR(dt)));
    107120    psLogMsg ("psphot", 3, "fit galaxies: %f sec for %d galaxies (%d failures, %d total iterations)\n", psTimerMark ("psphot"), Nfit, Nfail, Niter);
    108121    return (true);
Note: See TracChangeset for help on using the changeset viewer.