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

snapshot...

parent 9153c850
Branches
No related tags found
No related merge requests found
...@@ -778,6 +778,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): ...@@ -778,6 +778,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
bt = get_grid_values_all(h5f, 'temp_11_0um_nom') bt = get_grid_values_all(h5f, 'temp_11_0um_nom')
y_len, x_len = bt.shape y_len, x_len = bt.shape
print(y_len, x_len)
refl = get_grid_values_all(h5f, 'refl_0_65um_nom') refl = get_grid_values_all(h5f, 'refl_0_65um_nom')
refl_lo = get_grid_values_all(h5f, 'refl_0_65um_nom_min_sub') refl_lo = get_grid_values_all(h5f, 'refl_0_65um_nom_min_sub')
refl_hi = get_grid_values_all(h5f, 'refl_0_65um_nom_max_sub') refl_hi = get_grid_values_all(h5f, 'refl_0_65um_nom_max_sub')
...@@ -799,11 +800,14 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): ...@@ -799,11 +800,14 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
refl_hi_sh = refl_hi[2499:y_len, :] refl_hi_sh = refl_hi[2499:y_len, :]
refl_std_sh = refl_std[2499:y_len, :] refl_std_sh = refl_std[2499:y_len, :]
cp_sh = cp[2499:y_len, :] cp_sh = cp[2499:y_len, :]
print(bt_sh)
h5f.close() h5f.close()
cld_frac_nh = run_evaluate_static_(bt_nh, refl_nh, refl_lo_nh, refl_hi_nh, refl_std_nh, cp_nh, ckpt_dir) cld_frac_nh = run_evaluate_static_(bt_nh, refl_nh, refl_lo_nh, refl_hi_nh, refl_std_nh, cp_nh, ckpt_dir)
print(cld_frac_nh.shape)
cld_frac_sh = run_evaluate_static_(bt_sh, refl_sh, refl_lo_sh, refl_hi_sh, refl_std_sh, cp_sh, ckpt_dir) cld_frac_sh = run_evaluate_static_(bt_sh, refl_sh, refl_lo_sh, refl_hi_sh, refl_std_sh, cp_sh, ckpt_dir)
print(cld_frac_sh.shape)
cld_frac_out = np.zeros((y_len, x_len), dtype=np.int8) cld_frac_out = np.zeros((y_len, x_len), dtype=np.int8)
border = int((KERNEL_SIZE - 1)/2) border = int((KERNEL_SIZE - 1)/2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment