Browse Source

Forgot to modify the dx and dy after adding the additional point. Fixes #30

lon0
Bill Ladwig 8 years ago
parent
commit
af8bc5d5d0
  1. 4
      src/wrf/interputils.py

4
src/wrf/interputils.py

@ -174,8 +174,8 @@ def _calc_xy(xdim, ydim, pivot_point=None, angle=None,
xy = np.zeros((npts,2), "float") xy = np.zeros((npts,2), "float")
dx = dx/npts dx = dx/(npts-1)
dy = dy/npts dy = dy/(npts-1)
for i in py3range(npts): for i in py3range(npts):
xy[i,0] = x0 + i*dx xy[i,0] = x0 + i*dx

Loading…
Cancel
Save