Skip to content
Snippets Groups Projects
Commit 81ec8d33 authored by tomrink's avatar tomrink
Browse files

snapshot...

parent 3489f426
No related branches found
No related tags found
No related merge requests found
......@@ -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]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment