IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 8, 2008, 11:51:02 AM (18 years ago)
Author:
eugene
Message:

filter out nan values from fit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/imageops/psImageMapFit.c

    r17623 r19995  
    77 *  @author Eugene Magnier, IfA
    88 *
    9  *  @version $Revision: 1.9 $ $Name: not supported by cvs2svn $
    10  *  @date $Date: 2008-05-10 01:33:26 $
     9 *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
     10 *  @date $Date: 2008-10-08 21:51:02 $
    1111 *
    1212 *  Copyright 2007 Institute for Astronomy, University of Hawaii
     
    177177                // data value & weight for this point
    178178                float fi = f->data.F32[i];
     179                if (!isfinite(fi)) continue;
     180
    179181                float wt = 1.0;
    180182                if (df != NULL) {
     
    182184                        wt = 0.0;
    183185                    } else {
     186                        if (!isfinite(df->data.F32[i])) continue;
    184187                        wt = 1.0 / PS_SQR(df->data.F32[i]); // XXX test for dz == NULL or dz_i = 0
    185188                    }
Note: See TracChangeset for help on using the changeset viewer.