IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 28, 2022, 2:40:32 PM (4 years ago)
Author:
eugene
Message:

for bright stars in stacks, the peak in the S/N image can have a central divot if the variance of the central pixels is relatively large compared to the ring of pixels further from the center. the detected peaks are then not well centered. this can be avoided if we detect on the signal image itself (after first determining an appropriate flux value for the desired S/N limit); added an option to use the signal image for the first pass peak detetion step

Location:
trunk/psphot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot

  • trunk/psphot/src/psphotSourceFits.c

    r36863 r42088  
    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.