From 9cbf89114e6a1cf7c6a852f08bcdbf5135a4c211 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Fri, 19 Mar 2021 16:28:13 -0500 Subject: [PATCH] snapshot... --- modules/icing/pirep_goes.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/icing/pirep_goes.py b/modules/icing/pirep_goes.py index 249d1d6a..a48f6ca9 100644 --- a/modules/icing/pirep_goes.py +++ b/modules/icing/pirep_goes.py @@ -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: -- GitLab