From e887343e4effeaaa68992d8404e3555e541b7673 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Fri, 3 Feb 2023 14:17:57 -0600 Subject: [PATCH] snapshot... --- modules/deeplearning/srcnn_cld_frac.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/deeplearning/srcnn_cld_frac.py b/modules/deeplearning/srcnn_cld_frac.py index 88313c32..cffa2343 100644 --- a/modules/deeplearning/srcnn_cld_frac.py +++ b/modules/deeplearning/srcnn_cld_frac.py @@ -207,6 +207,15 @@ def get_label_data(grd_k): return s_t +# def get_label_data(grd_k): +# grd_k = np.where(np.isnan(grd_k), 0, grd_k) +# grd_k = np.where((grd_k >= 0.0) & (grd_k < 0.3), 0, grd_k) +# grd_k = np.where((grd_k >= 0.3) & (grd_k < 0.7), 1, grd_k) +# grd_k = np.where((grd_k >= 0.7) & (grd_k <= 1.0), 2, grd_k) +# +# return grd_k + + class SRCNN: def __init__(self): -- GitLab