Commit cd20f2e9 authored by POLCHER Jan's avatar POLCHER Jan 🚴🏾
Browse files

A bug in the delta longitude and latitude computed to get the boundary of the Hydro grid.

parent e8810ece
......@@ -33,8 +33,8 @@ def corners(lon, lat) :
cornerspoly = []
cornersll = []
index = []
hdlon=(np.max(lon[0,:])-np.min(lon[0,:]))/iim/2.0
hdlat=(np.max(lat[:,0])-np.min(lat[:,0]))/jjm/2.0
hdlon=np.mean(np.abs(np.diff(lon[0,:])))/2.0
hdlat=np.mean(np.abs(np.diff(lat[:,0])))/2.0
#
for i in range(iim) :
for j in range(jjm) :
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment