IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 4, 2011, 1:04:41 PM (15 years ago)
Author:
eugene
Message:

updates to pmPeak to better distinguish peak flux versions; updates to visualization; add bits for substantial suspect masking; consolidate assignment of source position and flux based on peak, moments, etc; improve footprint culling process; fix PSF_QF and PSF_QF_PERFECT calculations; fix source model chisq values

Location:
trunk/psModules
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules

    • Property svn:ignore
      •  

        old new  
        2828ChangeLog
        2929psmodules-*.tar.*
         30a.out.dSYM
  • trunk/psModules/src/objects/pmPhotObj.c

    r29004 r31153  
    6767        return false;
    6868    }
    69     if (!finite(source->peak->xf)) {
     69    if (!isfinite(source->peak->xf)) {
    7070        psError(PS_ERR_UNKNOWN, true, "NAN peak coordinate");
    7171        return false;
    7272    }
    73     if (!finite(source->peak->yf)) {
     73    if (!isfinite(source->peak->yf)) {
    7474        psError(PS_ERR_UNKNOWN, true, "NAN peak coordinate");
    7575        return false;
     
    8181        object->x  = source->peak->xf;
    8282        object->y  = source->peak->yf;
    83         object->SN = source->peak->SN;
     83        object->flux = source->peak->rawFlux;
    8484    } else {
    85         object->SN = PS_MAX(object->SN, source->peak->SN);
     85        object->flux = PS_MAX(object->flux, source->peak->rawFlux);
    8686    }
    8787    psArrayAdd (object->sources, 1, source);
     
    8989}
    9090
    91 // sort by SN (descending)
    92 int pmPhotObjSortBySN (const void **a, const void **b)
     91// sort by flux (descending)
     92int pmPhotObjSortByFlux (const void **a, const void **b)
    9393{
    9494    pmPhotObj *objA = *(pmPhotObj **)a;
    9595    pmPhotObj *objB = *(pmPhotObj **)b;
    9696
    97     psF32 fA = objA->SN;
    98     psF32 fB = objB->SN;
     97    psF32 fA = objA->flux;
     98    psF32 fB = objB->flux;
    9999
    100100    psF32 diff = fA - fB;
Note: See TracChangeset for help on using the changeset viewer.