IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19894


Ignore:
Timestamp:
Oct 3, 2008, 4:29:19 PM (18 years ago)
Author:
eugene
Message:

clip negative fluxes in moments analysis

File:
1 edited

Legend:

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

    r19884 r19894  
    66 *  @author EAM, IfA: significant modifications.
    77 *
    8  *  @version $Revision: 1.2 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2008-10-03 21:55:42 $
     8 *  @version $Revision: 1.3 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2008-10-04 02:29:19 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    211211            // XXX EAM : should this limit be user-defined?
    212212            if (PS_SQR(pDiff) < wDiff) continue;
     213            if (pDiff < 0) continue;
    213214
    214215            Sum += pDiff;
     
    269270             source->moments->Mxxxx, source->moments->Mxxxy, source->moments->Mxxyy, source->moments->Mxyyy, source->moments->Myyyy);
    270271
     272    if (source->moments->Mxx < 0) {
     273        fprintf (stderr, "error: neg second moment??\n");
     274    }
     275    if (source->moments->Myy < 0) {
     276        fprintf (stderr, "error: neg second moment??\n");
     277    }
     278
    271279    // XXX TEST:
    272     pmSourceMoments_Old (source, radius);
     280    // pmSourceMoments_Old (source, radius);
    273281    return(true);
    274282}
Note: See TracChangeset for help on using the changeset viewer.