From 168c25b5313fd3d2671bb043c325adc695aea81c Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Mon, 1 May 2023 14:35:58 -0500
Subject: [PATCH] snapshot...

---
 modules/deeplearning/cloud_opd_srcnn_viirs.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/modules/deeplearning/cloud_opd_srcnn_viirs.py b/modules/deeplearning/cloud_opd_srcnn_viirs.py
index 7de40750..99aa67d8 100644
--- a/modules/deeplearning/cloud_opd_srcnn_viirs.py
+++ b/modules/deeplearning/cloud_opd_srcnn_viirs.py
@@ -695,6 +695,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
     cld_opd = get_grid_values_all(h5f, 'super/' + label_param)
     ylen, xlen = cld_opd.shape
     cld_opd = cld_opd[int(ylen/2):ylen, :]
+    cld_opd_hres = cld_opd.copy()
 
     refl = np.where(np.isnan(refl), 0, refl)
     refl = normalize(refl, 'refl_0_65um_nom', mean_std_dct)
@@ -748,7 +749,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
     cld_opd_out = denormalize(cld_opd_out, label_param, mean_std_dct)
 
     if out_file is not None:
-        np.save(out_file, (cld_opd_sres_out, refl_out, cld_opd_out))
+        np.save(out_file, (cld_opd_sres_out, refl_out, cld_opd_out, cld_opd_hres))
     else:
         return cld_opd_sres_out, bt, refl
 
-- 
GitLab