pyinterp.core.geometry.geographic.RTree.inverse_distance_weighting

pyinterp.core.geometry.geographic.RTree.inverse_distance_weighting#

RTree.inverse_distance_weighting(self, coordinates: numpy.ndarray[dtype=float64, shape=(*, 2), writable=False], config: pyinterp.core.config.rtree.InverseDistanceWeighting | None = None) tuple[numpy.ndarray[dtype=float64, shape=(*), order='C'], numpy.ndarray[dtype=uint32, shape=(*), order='C']]#

Inverse distance weighting interpolation on geographic coordinates.

Parameters:
  • coordinates – Matrix of shape (n, 2) with (lon, lat) in degrees.

  • config – IDW configuration (k neighbors, radius, power, threads).

Returns:

Tuple (values, neighbor_counts).