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

snapshot...

parent 2523769a
Branches
No related tags found
No related merge requests found
...@@ -675,8 +675,12 @@ def run_restore_static(directory, ckpt_dir): ...@@ -675,8 +675,12 @@ def run_restore_static(directory, ckpt_dir):
def run_evaluate_static(in_file, out_file, ckpt_dir): def run_evaluate_static(in_file, out_file, ckpt_dir):
h5f = h5py.File(in_file, 'r') h5f = h5py.File(in_file, 'r')
grd_a = get_grid_values_all(h5f, 'temp_11_0um_nom') grd_a = get_grid_values_all(h5f, 'temp_11_0um_nom')
grd_a = grd_a[::2, ::2]
grd_b = get_grid_values_all(h5f, 'refl_0_65um_nom') grd_b = get_grid_values_all(h5f, 'refl_0_65um_nom')
grd_c = get_grid_values_all(h5f, 'cloud_fraction') grd_c = get_grid_values_all(h5f, 'cloud_fraction')
grd_c = grd_c[::2, ::2]
leny, lenx = grd_a.shape leny, lenx = grd_a.shape
x = np.arange(lenx) x = np.arange(lenx)
...@@ -688,6 +692,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): ...@@ -688,6 +692,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
grd_a = normalize(grd_a, 'temp_11_0um_nom', mean_std_dct) grd_a = normalize(grd_a, 'temp_11_0um_nom', mean_std_dct)
grd_b = normalize(grd_b, 'refl_0_65um_nom', mean_std_dct) grd_b = normalize(grd_b, 'refl_0_65um_nom', mean_std_dct)
grd_c = resample_2d_linear_one(x, y, grd_c, x_up, y_up) grd_c = resample_2d_linear_one(x, y, grd_c, x_up, y_up)
data = np.stack([grd_a, grd_b, grd_c], axis=2) data = np.stack([grd_a, grd_b, grd_c], axis=2)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment