Skip to content
Snippets Groups Projects
Commit cd20f2e9 authored by POLCHER Jan's avatar POLCHER Jan :bicyclist_tone4:
Browse files

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

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