From a0a7f53ccb3441c51bcdcc59c5cf2131c8c4e671 Mon Sep 17 00:00:00 2001 From: Martin Raspaud Date: Tue, 5 Nov 2024 09:22:16 +0100 Subject: [PATCH] Remove unneeded call to private scipy function --- satpy/readers/sar_c_safe.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/satpy/readers/sar_c_safe.py b/satpy/readers/sar_c_safe.py index e8676c9b56..437d25929a 100644 --- a/satpy/readers/sar_c_safe.py +++ b/satpy/readers/sar_c_safe.py @@ -511,15 +511,14 @@ def intp(grid_x, grid_y, interpolator): def interpolate_xarray_linear(xpoints, ypoints, values, shape, chunks=CHUNK_SIZE): """Interpolate linearly, generating a dask array.""" - from scipy.interpolate.interpnd import LinearNDInterpolator, _ndim_coords_from_arrays + from scipy.interpolate.interpnd import LinearNDInterpolator if isinstance(chunks, (list, tuple)): vchunks, hchunks = chunks else: vchunks, hchunks = chunks, chunks - - points = _ndim_coords_from_arrays(np.vstack((np.asarray(ypoints, dtype=np.uint16), - np.asarray(xpoints, dtype=np.uint16))).T) + points = np.vstack((np.asarray(ypoints, dtype=np.uint16), + np.asarray(xpoints, dtype=np.uint16))).T interpolator = LinearNDInterpolator(points, values)