IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 23, 2005, 4:01:41 PM (21 years ago)
Author:
gusciora
Message:

Improvements to the pmFPA transformations. There should be warning
messages now, and all functions are tested.

File:
1 edited

Legend:

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

    r5587 r5590  
    88*  @author GLG, MHPCC
    99*
    10 *  @version $Revision: 1.6 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2005-11-23 23:54:30 $
     10*  @version $Revision: 1.7 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2005-11-24 02:01:41 $
    1212*
    1313*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    6868    PS_ASSERT_IMAGE_NON_NULL(tmpImage, 0);
    6969
    70     if ((x < 0.0) || (x > (double)tmpImage->numCols) || (y < 0.0) || (y > (double)tmpImage->numRows)) {
     70    if (((x+FLT_EPSILON) < 0.0) ||
     71            (x > (double)tmpImage->numCols) ||
     72            ((y+FLT_EPSILON) < 0.0) ||
     73            (y > (double)tmpImage->numRows)) {
    7174        return (0);
    7275    }
     
    476479    }
    477480
    478     psLogMsg(__func__, PS_LOG_WARN, "WARNING: could not determine the cell.\n");
     481    //psLogMsg(__func__, PS_LOG_WARN, "WARNING: could not determine the cell.\n");
    479482    return (NULL);
    480483}
Note: See TracChangeset for help on using the changeset viewer.