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

snapshot...

parent 4bb914fa
No related branches found
No related tags found
No related merge requests found
......@@ -517,6 +517,8 @@ def make_for_full_domain_predict(h5f, name_list=None, satellite='GOES16', domain
w_y = 16
i_0 = 0
j_0 = 0
s_x = w_x
s_y = w_y
geos, xlen, xmin, xmax, ylen, ymin, ymax = get_cartopy_crs(satellite, domain)
if satellite == 'H08':
......@@ -539,17 +541,17 @@ def make_for_full_domain_predict(h5f, name_list=None, satellite='GOES16', domain
grd_dct_n = {name: [] for name in name_list}
n_x = int(xlen/w_x)
n_y = int(ylen/w_y)
n_x = int(xlen/s_x)
n_y = int(ylen/s_y)
ll = [j_0 + j*w_y for j in range(n_y-1)]
cc = [i_0 + i*w_x for i in range(n_x-1)]
ll = [j_0 + j*s_y for j in range(n_y-1)]
cc = [i_0 + i*s_x for i in range(n_x-1)]
for ds_name in name_list:
for j in range(n_y-1):
j_ul = j * w_y
j_ul = j * s_y
for i in range(n_x-1):
i_ul = i * w_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])
grd_dct = {name: None for 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