diff --git a/edexOsgi/com.raytheon.uf.common.geospatial/src/com/raytheon/uf/common/geospatial/interpolation/BilinearInterpolation.java b/edexOsgi/com.raytheon.uf.common.geospatial/src/com/raytheon/uf/common/geospatial/interpolation/BilinearInterpolation.java index 8ed18fd649..07ba49114e 100644 --- a/edexOsgi/com.raytheon.uf.common.geospatial/src/com/raytheon/uf/common/geospatial/interpolation/BilinearInterpolation.java +++ b/edexOsgi/com.raytheon.uf.common.geospatial/src/com/raytheon/uf/common/geospatial/interpolation/BilinearInterpolation.java @@ -50,8 +50,8 @@ public class BilinearInterpolation implements Interpolation { double value = 0.0f; double missing = 1.0f; - int xi = (int) x; - int yi = (int) y; + int xi = (int) Math.floor(x); + int yi = (int) Math.floor(y); // Upper left corner double xWeight = 1 - x + xi; double yWeight = 1 - y + yi;