From 59d8da69663fad4c4fe0411a23a26c72f2d3a604 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Wed, 28 Jun 2023 12:02:22 -0500 Subject: [PATCH] snapshot... --- modules/deeplearning/cloud_opd_srcnn_viirs.py | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) diff --git a/modules/deeplearning/cloud_opd_srcnn_viirs.py b/modules/deeplearning/cloud_opd_srcnn_viirs.py index 4f013aa0..e1ba77f7 100644 --- a/modules/deeplearning/cloud_opd_srcnn_viirs.py +++ b/modules/deeplearning/cloud_opd_srcnn_viirs.py @@ -699,20 +699,20 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): refl = get_grid_values_all(h5f, 'super/refl_0_65um') ylen, xlen = refl.shape - refl = refl[int(ylen/2):ylen, (int(xlen/2)-800):(int(xlen/2)+800)] + refl = refl[int(ylen/2):ylen, (int(xlen/2)-1000):(int(xlen/2)+1000)] LEN_Y, LEN_X = refl.shape bt = get_grid_values_all(h5f, 'orig/temp_11_0um') ylen, xlen = bt.shape - bt = bt[int(ylen/2):ylen, (int(xlen/2)-400):(int(xlen/2)+400)] + bt = bt[int(ylen/2):ylen, (int(xlen/2)-500):(int(xlen/2)+500)] cld_opd_orig = get_grid_values_all(h5f, 'orig/' + label_param) ylen, xlen = cld_opd_orig.shape - cld_opd_orig = cld_opd_orig[int(ylen/2):ylen, (int(xlen/2)-400):(int(xlen/2)+400)] + cld_opd_orig = cld_opd_orig[int(ylen/2):ylen, (int(xlen/2)-500):(int(xlen/2)+500)] cld_opd = get_grid_values_all(h5f, 'super/' + label_param) ylen, xlen = cld_opd.shape - cld_opd = cld_opd[int(ylen/2):ylen, (int(xlen/2)-800):(int(xlen/2)+800)] + cld_opd = cld_opd[int(ylen/2):ylen, (int(xlen/2)-1000):(int(xlen/2)+1000)] cld_opd_hres = cld_opd.copy() refl = np.where(np.isnan(refl), 0, refl) @@ -732,17 +732,6 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): bt = smooth_2d(bt) bt = normalize(bt, 'temp_11_0um_nom', mean_std_dct) - # refl = get_grid_values_all(h5f, 'super/refl_0_65um') - # refl = np.where(np.isnan(refl), 0, refl) - # refl = np.expand_dims(refl, axis=0) - # refl_lo, refl_hi, refl_std, refl_avg = get_min_max_std(refl) - # refl_lo = normalize(refl_lo, 'refl_0_65um_nom', mean_std_dct) - # refl_hi = normalize(refl_hi, 'refl_0_65um_nom', mean_std_dct) - # refl_avg = normalize(refl_avg, 'refl_0_65um_nom', mean_std_dct) - # refl_lo = np.squeeze(refl_lo) - # refl_hi = np.squeeze(refl_hi) - # refl_avg = np.squeeze(refl_avg) - # cld_opd = np.where(np.isnan(cld_opd), 0, cld_opd) # cld_opd = cld_opd[nn.slc_y_2, nn.slc_x_2] # cld_opd = np.expand_dims(cld_opd, axis=0) -- GitLab