From af8bc5d5d0ba4812abc3ffbb146a34fad353faa4 Mon Sep 17 00:00:00 2001 From: Bill Ladwig Date: Thu, 2 Nov 2017 16:53:39 -0600 Subject: [PATCH] Forgot to modify the dx and dy after adding the additional point. Fixes #30 --- src/wrf/interputils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wrf/interputils.py b/src/wrf/interputils.py index c4af626..fb2768f 100644 --- a/src/wrf/interputils.py +++ b/src/wrf/interputils.py @@ -174,8 +174,8 @@ def _calc_xy(xdim, ydim, pivot_point=None, angle=None, xy = np.zeros((npts,2), "float") - dx = dx/npts - dy = dy/npts + dx = dx/(npts-1) + dy = dy/(npts-1) for i in py3range(npts): xy[i,0] = x0 + i*dx