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

add new method...

parent a61ac629
Branches
No related tags found
No related merge requests found
......@@ -1331,4 +1331,8 @@ def downscale_2x(original, smoothing=False, samples_axis_first=False):
def resample(x, y, z, x_min, x_max, y_min, y_max):
return RectBivariateSpline(x, y, z, [x_min, x_max, y_min, y_max])
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]))
return np.stack(z_intrp)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment