From caa55a7c565fd2fc47918086c5579d7568534fee Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Tue, 13 Sep 2022 13:19:37 -0500 Subject: [PATCH] snaphot... --- modules/util/util.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/util/util.py b/modules/util/util.py index 0585c960..c40af26c 100644 --- a/modules/util/util.py +++ b/modules/util/util.py @@ -1385,7 +1385,7 @@ def downscale_2x(original, smoothing=False, samples_axis_first=False): return lr -def resample(x, y, z, x_new, y_new): +def resample(y, x, z, y_new, x_new): z_intrp = [] for k in range(z.shape[0]): z_k = z[k, :, :] @@ -1394,6 +1394,6 @@ def resample(x, y, z, x_new, y_new): return np.stack(z_intrp) -def resample_one(x, y, z, x_new, y_new): +def resample_one(y, x, z, y_new, x_new): f = RectBivariateSpline(x, y, z) return f(x_new, y_new) \ No newline at end of file -- GitLab