From b68207f2829a8d9e50fcf9bf581bfb7743088381 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Wed, 24 May 2023 14:38:11 -0500 Subject: [PATCH] snapshot... --- modules/deeplearning/cloud_opd_srcnn_abi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/deeplearning/cloud_opd_srcnn_abi.py b/modules/deeplearning/cloud_opd_srcnn_abi.py index e3ca1611..9a740310 100644 --- a/modules/deeplearning/cloud_opd_srcnn_abi.py +++ b/modules/deeplearning/cloud_opd_srcnn_abi.py @@ -723,7 +723,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): print('REFL done') bt = np.where(np.isnan(bt), 0, bt) - bt = bt[nn.slc_y, nn.slc_x] + bt = bt[slc_y, slc_x] bt = np.expand_dims(bt, axis=0) bt = upsample_static(bt, x_2, y_2, t, s, None, None) bt = normalize(bt, 'temp_11_0um_nom', mean_std_dct) @@ -741,7 +741,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): # refl_avg = np.squeeze(refl_avg) cld_opd = np.where(np.isnan(cld_opd), 0, cld_opd) - cld_opd = cld_opd[nn.slc_y, nn.slc_x] + cld_opd = cld_opd[slc_y, slc_x] cld_opd = np.expand_dims(cld_opd, axis=0) cld_opd = upsample_static(cld_opd, x_2, y_2, t, s, None, None) cld_opd = normalize(cld_opd, label_param, mean_std_dct) -- GitLab