IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31867


Ignore:
Timestamp:
Jul 12, 2011, 10:52:06 AM (15 years ago)
Author:
eugene
Message:

adding more tracing info on fits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20110710/psphot/src/psphotExtendedSourceFits.c

    r31673 r31867  
    401401          // XXX psTraceSetLevel ("psphot.psphotModelWithPSF_LMM", 6);
    402402
     403          // XXX this does not make sense in a threaded context
     404          psTimerStart ("psphot.extended.fit");
     405
    403406          // fit the model as convolved or not
    404407          pmModel *modelFit = NULL;
     
    410413                  continue;
    411414              }
    412               psTrace ("psphot", 4, "fit psf-conv model for %f, %f : %s chisq = %f\n", source->moments->Mx, source->moments->My, pmModelClassGetName (modelFit->type), modelFit->chisq);
     415              psTrace ("psphot", 4, "fit psf-conv model for %f, %f : %s chisq = %f (npix: %d, niter: %d)\n",
     416                       source->moments->Mx, source->moments->My, pmModelClassGetName (modelFit->type), modelFit->chisq, modelFit->nPix, modelFit->nIter);
    413417              Nconvolve ++;
    414418              if (!(modelFit->flags & (PM_MODEL_STATUS_BADARGS | PM_MODEL_STATUS_NONCONVERGE | PM_MODEL_STATUS_OFFIMAGE))) {
     
    426430              }
    427431              pmSourceCacheModel (source, maskVal);
    428               psTrace ("psphot", 4, "fit plain model for %f, %f : %s chisq = %f\n", source->moments->Mx, source->moments->My, pmModelClassGetName (modelFit->type), modelFit->chisq);
     432              psTrace ("psphot", 4, "fit plain model for %f, %f : %s chisq = %f (npix: %d, niter: %d)\n",
     433                       source->moments->Mx, source->moments->My, pmModelClassGetName (modelFit->type), modelFit->chisq, modelFit->nPix, modelFit->nIter);
    429434              Nplain ++;
    430435              if (!(modelFit->flags & (PM_MODEL_STATUS_BADARGS | PM_MODEL_STATUS_NONCONVERGE | PM_MODEL_STATUS_OFFIMAGE))) {
     
    433438              }
    434439          }
     440
     441          psLogMsg ("psphot", PS_LOG_INFO, "model fit: %7.5f sec, %5d npix, %2d iter, %s type\n", psTimerMark ("psphot.extended.fit"), modelFit->nPix, modelFit->nIter, pmModelClassGetName (modelFit->type));
    435442
    436443          // save each of the model flux images and store the best
Note: See TracChangeset for help on using the changeset viewer.