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

only read the values we need

parent 796c3147
No related merge requests found
...@@ -460,7 +460,7 @@ def make_for_full_domain_predict(h5f, name_list=None, satellite='GOES16', domain ...@@ -460,7 +460,7 @@ def make_for_full_domain_predict(h5f, name_list=None, satellite='GOES16', domain
cnt_a = 0 cnt_a = 0
for didx, ds_name in enumerate(name_list): for didx, ds_name in enumerate(name_list):
gvals = get_grid_values_all(h5f, ds_name) gvals = get_grid_values_all(h5f, ds_name, j_0, i_0, None, num_j=ylen, num_i=xlen)
if gvals is not None: if gvals is not None:
grd_dct[ds_name] = gvals grd_dct[ds_name] = gvals
cnt_a += 1 cnt_a += 1
...@@ -476,11 +476,21 @@ def make_for_full_domain_predict(h5f, name_list=None, satellite='GOES16', domain ...@@ -476,11 +476,21 @@ def make_for_full_domain_predict(h5f, name_list=None, satellite='GOES16', domain
cc = [] cc = []
ll = [] ll = []
# for didx, ds_name in enumerate(name_list):
# for j in range(4, n_y-4, 1):
# j_ul = j_0 + j * w_y
# for i in range(4, n_x-4, 1):
# i_ul = i_0 + i * w_x
# if didx == 0:
# ll.append(j_ul)
# cc.append(i_ul)
# grd_dct_n[ds_name].append(grd_dct[ds_name][j_ul:j_ul+w_y, i_ul:i_ul+w_x])
for didx, ds_name in enumerate(name_list): for didx, ds_name in enumerate(name_list):
for j in range(4, n_y-4, 1): for j in range(n_y-1):
j_ul = j_0 + j * w_y j_ul = j * w_y
for i in range(4, n_x-4, 1): for i in range(n_x-1):
i_ul = i_0 + i * w_x i_ul = i * w_x
if didx == 0: if didx == 0:
ll.append(j_ul) ll.append(j_ul)
cc.append(i_ul) cc.append(i_ul)
......
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