IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 3, 2008, 11:00:18 AM (18 years ago)
Author:
eugene
Message:

converted pmMoments elements to Mxx, Myy, Mxxx, etc; using pmPeak position in most cases instead of moments

File:
1 edited

Legend:

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

    r19869 r19881  
    5555
    5656        // limit selection to some SN limit
    57         // XXX this should use peak?
    58         if (source->moments == NULL) continue;
    59         if (source->moments->SN < FIT_SN_LIM) continue;
     57        if (source->peak->SN < FIT_SN_LIM) continue;
    6058
    6159        // XXX this should use peak?
    62         if (source->moments->x < AnalysisRegion.x0) continue;
    63         if (source->moments->y < AnalysisRegion.y0) continue;
    64         if (source->moments->x > AnalysisRegion.x1) continue;
    65         if (source->moments->y > AnalysisRegion.y1) continue;
     60        if (source->peak->xf < AnalysisRegion.x0) continue;
     61        if (source->peak->yf < AnalysisRegion.y0) continue;
     62        if (source->peak->xf > AnalysisRegion.x1) continue;
     63        if (source->peak->yf > AnalysisRegion.y1) continue;
    6664
    6765        // if model is NULL, we don't have a starting guess
     
    9593            if (psphotFitBlob (readout, source, sources, psf, maskVal, markVal)) {
    9694                source->type = PM_SOURCE_TYPE_EXTENDED;
    97                 psTrace ("psphot", 5, "source at %7.1f, %7.1f is ext", source->moments->x, source->moments->y);
     95                psTrace ("psphot", 5, "source at %7.1f, %7.1f is ext", source->peak->xf, source->peak->yf);
    9896                Next ++;
    9997                continue;
     
    102100            if (psphotFitBlend (readout, source, psf, maskVal, markVal)) {
    103101                source->type = PM_SOURCE_TYPE_STAR;
    104                 psTrace ("psphot", 5, "source at %7.1f, %7.1f is psf", source->moments->x, source->moments->y);
     102                psTrace ("psphot", 5, "source at %7.1f, %7.1f is psf", source->peak->xf, source->peak->yf);
    105103                Npsf ++;
    106104                continue;
     
    108106        }
    109107
    110         psTrace ("psphot", 5, "source at %7.1f, %7.1f failed", source->moments->x, source->moments->y);
     108        psTrace ("psphot", 5, "source at %7.1f, %7.1f failed", source->peak->xf, source->peak->yf);
    111109        Nfail ++;
    112110
Note: See TracChangeset for help on using the changeset viewer.