IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 25, 2021, 2:22:11 PM (5 years ago)
Author:
eugene
Message:

allow option to use signal image on first pass for detections

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/psphot/src/psphotSourceFits.c

    r36863 r41968  
    499499
    500500# if (PS_TRACE_ON)
    501     if (psTraceGetLevel ("psphot") >= 6) {
     501    if ( (source->peak->xf > 5500) &&
     502         (source->peak->yf < 500) &&
     503         psTraceGetLevel ("psphot") >= 6) {
    502504
    503505      // Moments-based shapes parameters
     
    546548
    547549# if (PS_TRACE_ON)
    548     if (psTraceGetLevel ("psphot") >= 5) {
    549       if (psTraceGetLevel ("psphot") >= 6) {
    550         fprintf (stderr, "chisq: %f, nIter: %d, radius: %f, npix: %d\n", model->chisqNorm, model->nIter, model->fitRadius, model->nPix);
    551       }
     550    if ((source->peak->xf > 5500) &&
     551        (source->peak->yf < 500) &&
     552        psTraceGetLevel ("psphot") >= 6) {
     553      fprintf (stderr, "chisq: %f, nIter: %d, radius: %f, npix: %d\n", model->chisqNorm, model->nIter, model->fitRadius, model->nPix);
    552554      fprintf (stderr, "--- fitted values ---\n");
    553555      for (int i = 0; i < model->params->n; i++) {
    554556        fprintf (stderr, "par %d: %f\n", i, model->params->data.F32[i]);
    555557      }
    556       psTraceSetLevel("psLib.math.psMinimizeLMChi2", 0);
    557     }
     558    }
     559    psTraceSetLevel("psLib.math.psMinimizeLMChi2", 0);
    558560# endif
    559561
Note: See TracChangeset for help on using the changeset viewer.