Skip to content
Snippets Groups Projects
Commit 0e5b3865 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 7aafc16c
No related branches found
No related tags found
No related merge requests found
...@@ -810,8 +810,6 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): ...@@ -810,8 +810,6 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
cld_frac = probs.argmax(axis=3) cld_frac = probs.argmax(axis=3)
cld_frac = cld_frac.astype(np.int8) cld_frac = cld_frac.astype(np.int8)
cld_frac_out = np.zeros((y_len, x_len), dtype=np.int8) cld_frac_out = np.zeros((y_len, x_len), dtype=np.int8)
lons_out = np.zeros((y_len, x_len), dtype=np.float32)
lats_out = np.zeros((y_len, x_len), dtype=np.float32)
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, :, :]
...@@ -821,7 +819,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): ...@@ -821,7 +819,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, (cld_frac_out, bt, refl_avg, cp, lons, lats)) np.save(out_file, (cld_frac_out, bt, refl_avg, cp, lons, lats))
else: else:
return cld_frac_out, bt, refl_avg, cp, lons, lats return [cld_frac_out, bt, refl_avg, cp, lons, lats]
def analyze_3cat(file): def analyze_3cat(file):
......
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