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

snapshot...

parent fc9acaba
No related branches found
No related tags found
No related merge requests found
...@@ -718,12 +718,14 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): ...@@ -718,12 +718,14 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
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[y_0:y_0+sub_y, x_0:x_0+sub_x] grd_a = grd_a[y_0:y_0+sub_y, x_0:x_0+sub_x]
grd_a = grd_a[slc_y_2, slc_x_2] grd_a = grd_a[slc_y_2, slc_x_2]
bt = grd_a
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_a = resample_2d_linear_one(x_2, y_2, grd_a, t, s) grd_a = resample_2d_linear_one(x_2, y_2, grd_a, t, s)
grd_b = get_grid_values_all(h5f, 'refl_0_65um_nom') grd_b = get_grid_values_all(h5f, 'refl_0_65um_nom')
grd_b = grd_b[y_0:y_0+sub_y, x_0:x_0+sub_x] grd_b = grd_b[y_0:y_0+sub_y, x_0:x_0+sub_x]
grd_b = grd_b[slc_y_2, slc_x_2] grd_b = grd_b[slc_y_2, slc_x_2]
refl = grd_b
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_b = resample_2d_linear_one(x_2, y_2, grd_b, t, s) grd_b = resample_2d_linear_one(x_2, y_2, grd_b, t, s)
...@@ -744,7 +746,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): ...@@ -744,7 +746,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
if out_file is not None: if out_file is not None:
np.save(out_file, out_sr) np.save(out_file, out_sr)
else: else:
return out_sr return out_sr, bt, refl
def run_evaluate_static_2(in_file, out_file, ckpt_dir): def run_evaluate_static_2(in_file, out_file, ckpt_dir):
......
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