From 81ec8d3325403ce9994845b51ee986f628cb6785 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Wed, 24 May 2023 13:59:24 -0500 Subject: [PATCH] snapshot... --- modules/deeplearning/cloud_opd_srcnn_abi.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/deeplearning/cloud_opd_srcnn_abi.py b/modules/deeplearning/cloud_opd_srcnn_abi.py index 247c4bc2..56b816f2 100644 --- a/modules/deeplearning/cloud_opd_srcnn_abi.py +++ b/modules/deeplearning/cloud_opd_srcnn_abi.py @@ -141,6 +141,12 @@ def get_min_max_std(grd_k): return lo, hi, std, avg +# def upsample_static(grd, x_2, y_2, t, s, y_k, x_k): +# grd = resample_2d_linear(x_2, y_2, grd, t, s, y_k, x_k) +# grd = grd[:, y_k, x_k] +# return grd + + class SRCNN: def __init__(self, LEN_Y=32, LEN_X=32): @@ -699,7 +705,7 @@ def run_evaluate_static(in_file, out_file, ckpt_dir): cld_opd = cld_opd[int(ylen/2):ylen, :] cld_opd_hres = cld_opd.copy() - nn = SRCNN(LEN_Y=2*LEN_Y-16, LEN_X=2*LEN_X-16) + nn = SRCNN(LEN_Y=2*LEN_Y, LEN_X=2*LEN_X) refl = np.where(np.isnan(refl), 0, bt) refl = refl[nn.slc_y, nn.slc_x] -- GitLab