Skip to content

Commit af8bc5d

Browse files
author
Bill Ladwig
committed
Forgot to modify the dx and dy after adding the additional point. Fixes NCAR#30
1 parent ea7aba5 commit af8bc5d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/wrf/interputils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ def _calc_xy(xdim, ydim, pivot_point=None, angle=None,
174174

175175
xy = np.zeros((npts,2), "float")
176176

177-
dx = dx/npts
178-
dy = dy/npts
177+
dx = dx/(npts-1)
178+
dy = dy/(npts-1)
179179

180180
for i in py3range(npts):
181181
xy[i,0] = x0 + i*dx

0 commit comments

Comments
 (0)