Skip to content
Snippets Groups Projects
Commit 14af5298 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 1dbecb44
No related branches found
No related tags found
No related merge requests found
...@@ -792,7 +792,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): ...@@ -792,7 +792,7 @@ 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, :, :]
# 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']
# da = xr.DataArray(np.stack([cld_frac_out, bt, refl], axis=0), dims=dims) # da = xr.DataArray(np.stack([cld_frac_out, bt, refl], axis=0), dims=dims)
...@@ -801,6 +801,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): ...@@ -801,6 +801,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
# 'lat': (['y', 'x'], lats), # 'lat': (['y', 'x'], lats),
# 'lon': (['y', 'x'], lons) # 'lon': (['y', 'x'], lons)
# }) # })
# ---------------------------------------------------------------------------
h5f.close() h5f.close()
...@@ -850,7 +851,7 @@ def run_evaluate_static_full_disk(in_file, out_file, ckpt_dir): ...@@ -850,7 +851,7 @@ 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, :, :]
# 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']
# da = xr.DataArray(np.stack([cld_frac_out, bt, refl], axis=0), dims=dims) # da = xr.DataArray(np.stack([cld_frac_out, bt, refl], axis=0), dims=dims)
...@@ -859,6 +860,7 @@ def run_evaluate_static_full_disk(in_file, out_file, ckpt_dir): ...@@ -859,6 +860,7 @@ def run_evaluate_static_full_disk(in_file, out_file, ckpt_dir):
# 'lat': (['y', 'x'], lats), # 'lat': (['y', 'x'], lats),
# 'lon': (['y', 'x'], lons) # 'lon': (['y', 'x'], lons)
# }) # })
# ------------------------------------------------------------------------
h5f.close() h5f.close()
......
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