IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15051


Ignore:
Timestamp:
Sep 27, 2007, 2:37:59 PM (19 years ago)
Author:
eugene
Message:

skip objects without astrometry (dX, dY is nan)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/astrom/pmAstrometryObjects.c

    r14649 r15051  
    88*  @author EAM, IfA
    99*
    10 *  @version $Revision: 1.32 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2007-08-23 23:44:05 $
     10*  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2007-09-28 00:37:59 $
    1212*
    1313*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    473473    }
    474474
    475     if (fabs(dX) > maxOffpix) {
    476         return false;
    477     }
    478 
    479     if (fabs(dY) > maxOffpix) {
    480         return false;
    481     }
     475    if (!isfinite(dX)) return false;
     476    if (!isfinite(dY)) return false;
     477
     478    if (fabs(dX) > maxOffpix) return false;
     479    if (fabs(dY) > maxOffpix) return false;
    482480
    483481    *dx = dX / Scale + Offset;
Note: See TracChangeset for help on using the changeset viewer.