From 8f7c5bab465d2ff7424dfec0c793a64aee2c7945 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Tue, 30 May 2023 14:53:25 -0500 Subject: [PATCH] snapshot... --- modules/deeplearning/cloud_fraction_fcn_abi.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/deeplearning/cloud_fraction_fcn_abi.py b/modules/deeplearning/cloud_fraction_fcn_abi.py index 69351c7f..e72ea4e1 100644 --- a/modules/deeplearning/cloud_fraction_fcn_abi.py +++ b/modules/deeplearning/cloud_fraction_fcn_abi.py @@ -879,6 +879,9 @@ def run_evaluate_static_valid(in_file, out_file, ckpt_dir): cp = get_grid_values_all(h5f, 'orig/'+label_param) lons = get_grid_values_all(h5f, 'orig/longitude') lats = get_grid_values_all(h5f, 'orig/latitude') + cp_sres = get_grid_values_all(h5f, 'super/'+label_param) + + mean_cp_sres = get_grid_cell_mean(np.expand_dims(cp_sres, axis=0))[0] h5f.close() @@ -898,7 +901,7 @@ def run_evaluate_static_valid(in_file, out_file, ckpt_dir): }) if out_file is not None: - np.save(out_file, (cld_frac_out, bt, refl, cp, lons, lats)) + np.save(out_file, (cld_frac_out, bt, refl, cp, lons, lats, mean_cp_sres)) else: return [cld_frac_out, bt, refl, cp, lons, lats] -- GitLab