Skip to content
Snippets Groups Projects
Commit 78c8e8ff authored by tomrink's avatar tomrink
Browse files

snaphot...

parent db001e36
Branches
No related tags found
No related merge requests found
......@@ -669,14 +669,15 @@ def run_evaluate_static(in_file, out_file, ckpt_dir):
def run_evaluate_static_new(in_file, out_file, ckpt_dir):
nda = np.load(in_file)
nda = nda[:, data_idx, 3:131:2, 3:131:2]
nda = resample(x_64, y_64, nda, t, s)
nda = np.expand_dims(nda, axis=3)
h5f = h5py.File(in_file, 'r')
grd = get_grid_values_all(h5f, data_param)
leny, lenx = grd.shape
x = np.arange(lenx)
y = np.arange(leny)
x_up = np.arange(0, lenx, 0.5)
y_up = np.arange(0, leny, 0.5)
grd = resample(x, y, grd, x_up, y_up)
nn = SRCNN()
out_sr = nn.run_evaluate(grd, data_param, ckpt_dir)
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment