IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 14321


Ignore:
Timestamp:
Jul 19, 2007, 2:23:22 PM (19 years ago)
Author:
magnier
Message:

we were calculating sqrt(second moment), but everything else assumes the straight second moment; fixed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSource.c

    r13982 r14321  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.31 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2007-06-26 19:27:37 $
     8 *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2007-07-20 00:23:22 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    745745
    746746    // XXX EAM : these values can be negative, so we need to limit the range
    747     source->moments->Sx = sqrt(PS_MAX(X2/Sum - PS_SQR(x), 0));
    748     source->moments->Sy = sqrt(PS_MAX(Y2/Sum - PS_SQR(y), 0));
     747    // XXX EAM : make the use of this consistent: should this be the second moment or sqrt?
     748    // source->moments->Sx = sqrt(PS_MAX(X2/Sum - PS_SQR(x), 0));
     749    // source->moments->Sy = sqrt(PS_MAX(Y2/Sum - PS_SQR(y), 0));
     750    source->moments->Sx = PS_MAX(X2/Sum - PS_SQR(x), 0);
     751    source->moments->Sy = PS_MAX(Y2/Sum - PS_SQR(y), 0);
    749752
    750753    psTrace ("psModules.objects", 4,
Note: See TracChangeset for help on using the changeset viewer.