pyinterp.rtree.radial_basis_function#
- pyinterp.rtree.radial_basis_function(tree, coordinates, config=None, *, k=None, rbf=None, epsilon=None, smooth=None, radius=None, boundary_check=None, num_threads=None)[source]#
Radial Basis Function interpolation.
- Parameters:
tree (core.RTree3DHolder | core.geometry.geographic.RTree) – R*Tree containing the scattered data.
coordinates (np.ndarray[TwoDims, np.dtype]) –
Query coordinates as a NumPy array with shape:
(N, 2): For geographic.RTree, representing (longitude, latitude).
(N, 2) or (N, 3): For RTree3DHolder, representing (longitude, latitude[, altitude]).
config (rtree.RadialBasisFunction | None) – Configuration object (if provided, keyword args are ignored)
k (int | None) – Number of nearest neighbors to use
rbf (RBFKernel | None) – RBF kernel type
epsilon (float | None) – Shape parameter (None = auto)
smooth (float | None) – Smoothing parameter
radius (float | None) – Search radius (None = no limit)
boundary_check (BoundaryCheck | None) – Boundary checking mode
num_threads (int | None) – Number of threads (0 = auto)
- Returns:
Tuple of (interpolated values, neighbor counts)
- Return type:
tuple[np.ndarray[OneDim, np.dtype], NDArray1DUInt32]
Examples
>>> result, counts = radial_basis_function( ... tree, coords, k=10, rbf="thin_plate" ... )