From 5aec769dbf1eeff6098e3dac6915addbd94a89d2 Mon Sep 17 00:00:00 2001
From: tomrink <rink@ssec.wisc.edu>
Date: Sat, 13 Aug 2022 10:45:09 -0500
Subject: [PATCH] add new method...

---
 modules/util/util.py | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/modules/util/util.py b/modules/util/util.py
index 1c6ed66e..542a15c7 100644
--- a/modules/util/util.py
+++ b/modules/util/util.py
@@ -1330,9 +1330,10 @@ def downscale_2x(original, smoothing=False, samples_axis_first=False):
     return lr
 
 
-def resample(x, y, z, x_min, x_max, y_min, y_max):
+def resample(x, y, z, x_new, y_new):
     z_intrp = []
     for k in range(z.shape[0]):
         z_k = z[k, :, :]
-        z_intrp.append(RectBivariateSpline(x, y, z_k, [x_min, x_max, y_min, y_max]))
+        f = RectBivariateSpline(x, y, z_k)
+        z_intrp.append(f(x_new, y_new))
     return np.stack(z_intrp)
-- 
GitLab