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

fix indexing problem

parent e0fa7c5d
No related branches found
No related tags found
No related merge requests found
...@@ -586,9 +586,15 @@ def make_for_full_domain_predict(h5f, name_list=None, satellite='GOES16', domain ...@@ -586,9 +586,15 @@ def make_for_full_domain_predict(h5f, name_list=None, satellite='GOES16', domain
for ds_name in name_list: for ds_name in name_list:
for j in range(n_y-1): for j in range(n_y-1):
j_ul = j * s_y j_ul = j * s_y
j_ul_b = j_ul + w_y
if j_ul_b >= ylen:
continue
for i in range(n_x-1): for i in range(n_x-1):
i_ul = i * s_x i_ul = i * s_x
grd_dct_n[ds_name].append(grd_dct[ds_name][j_ul:j_ul+w_y, i_ul:i_ul+w_x]) i_ul_b = i_ul + w_x
if i_ul_b >= xlen:
continue
grd_dct_n[ds_name].append(grd_dct[ds_name][j_ul:j_ul_b, i_ul:i_ul_b])
grd_dct = {name: None for name in name_list} grd_dct = {name: None for name in name_list}
for ds_name in name_list: for ds_name in name_list:
......
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