Skip to content
Snippets Groups Projects
Commit 9cbf8911 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 372c63bc
Branches
No related tags found
No related merge requests found
......@@ -72,10 +72,12 @@ def get_grid_values(h5f, grid_name, j_c, i_c, half_width, scale_factor_name='sca
hfds = h5f[grid_name]
attrs = hfds.attrs
ylen, xlen = hfds.shape
j_l = j_c-half_width
i_l = i_c-half_width
if j_l < 0 or i_l < 0:
return None
j_r = j_c+half_width+1
i_r = i_c+half_width+1
if j_r >= ylen or i_r >= xlen:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment