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

snapshot...

parent 14af5298
No related branches found
No related tags found
No related merge requests found
...@@ -792,6 +792,10 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): ...@@ -792,6 +792,10 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
border = int((KERNEL_SIZE - 1)/2) border = int((KERNEL_SIZE - 1)/2)
cld_frac_out[border:y_len-border, border:x_len - border] = cld_frac[0, :, :] cld_frac_out[border:y_len-border, border:x_len - border] = cld_frac[0, :, :]
# Use this hack for now.
off_earth = (bt <= 161.0)
cld_frac_out[off_earth] = np.nan
# --- Make a DataArray ---------------------------------------------------- # --- Make a DataArray ----------------------------------------------------
# var_names = ['cloud_fraction', 'temp_11_0um', 'refl_0_65um'] # var_names = ['cloud_fraction', 'temp_11_0um', 'refl_0_65um']
# dims = ['num_params', 'y', 'x'] # dims = ['num_params', 'y', 'x']
...@@ -851,6 +855,10 @@ def run_evaluate_static_full_disk(in_file, out_file, ckpt_dir): ...@@ -851,6 +855,10 @@ def run_evaluate_static_full_disk(in_file, out_file, ckpt_dir):
cld_frac_out[border:h_y_len, border:x_len - border] = cld_frac_nh[0, :, :] cld_frac_out[border:h_y_len, border:x_len - border] = cld_frac_nh[0, :, :]
cld_frac_out[h_y_len:y_len - border, border:x_len - border] = cld_frac_sh[0, :, :] cld_frac_out[h_y_len:y_len - border, border:x_len - border] = cld_frac_sh[0, :, :]
# Use this hack for now.
off_earth = (bt <= 161.0)
cld_frac_out[off_earth] = np.nan
# --- Make DataArray ------------------------------------------------- # --- Make DataArray -------------------------------------------------
# var_names = ['cloud_fraction', 'temp_11_0um', 'refl_0_65um'] # var_names = ['cloud_fraction', 'temp_11_0um', 'refl_0_65um']
# dims = ['num_params', 'y', 'x'] # dims = ['num_params', 'y', 'x']
......
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