From fc17675534efe255d631a86b0f5545903e5c5258 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Mon, 27 Mar 2023 11:23:20 -0500 Subject: [PATCH] snapshot... --- modules/deeplearning/cloud_fraction_fcn.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/deeplearning/cloud_fraction_fcn.py b/modules/deeplearning/cloud_fraction_fcn.py index d73e6152..0d02b3e5 100644 --- a/modules/deeplearning/cloud_fraction_fcn.py +++ b/modules/deeplearning/cloud_fraction_fcn.py @@ -768,6 +768,8 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): h5f = h5py.File(in_file, 'r') bt = get_grid_values_all(h5f, 'orig/temp_11_0um') + lons = get_grid_values_all(h5f, 'longitude') + lats = get_grid_values_all(h5f, 'latitude') bt = np.where(np.isnan(bt), 0, bt) bt = normalize(bt, 'temp_11_0um_nom', mean_std_dct) @@ -797,7 +799,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): if out_file is not None: np.save(out_file, (cld_frac[0, :, :], denormalize(bt, 'temp_11_0um_nom', mean_std_dct), denormalize(refl_avg, 'refl_0_65um_nom', mean_std_dct), cp)) else: - return cld_frac[0, :, :], bt, refl_avg, cp + return cld_frac[0, :, :], denormalize(bt, 'temp_11_0um_nom', mean_std_dct), denormalize(refl_avg, 'refl_0_65um_nom', mean_std_dct), cp def analyze2(nda_m, nda_i): -- GitLab