IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 11175


Ignore:
Timestamp:
Jan 18, 2007, 6:55:08 PM (19 years ago)
Author:
eugene
Message:

use peak SN not moments SN

File:
1 edited

Legend:

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

    r9270 r11175  
    77    pmSource *B = *(pmSource **)b;
    88
    9     psF32 fA = (A->moments == NULL) ? 0 : A->moments->SN;
    10     psF32 fB = (B->moments == NULL) ? 0 : B->moments->SN;
     9    psF32 fA = (A->peak == NULL) ? 0 : A->peak->SN;
     10    psF32 fB = (B->peak == NULL) ? 0 : B->peak->SN;
    1111    if (isnan (fA)) fA = 0;
    1212    if (isnan (fB)) fB = 0;
     
    2424    pmSource *B = *(pmSource **)b;
    2525
    26     psF32 fA = (A->moments == NULL) ? 0 : A->moments->y;
    27     psF32 fB = (B->moments == NULL) ? 0 : B->moments->y;
     26    psF32 fA = (A->peak == NULL) ? 0 : A->peak->y;
     27    psF32 fB = (B->peak == NULL) ? 0 : B->peak->y;
    2828
    2929    psF32 diff = fA - fB;
Note: See TracChangeset for help on using the changeset viewer.