pyinterp.RTree3DFloat32.inverse_distance_weighting

pyinterp.RTree3DFloat32.inverse_distance_weighting#

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

Inverse distance weighting interpolation.

Interpolate values at query locations using inverse distance weighting (IDW).

Parameters:
  • coordinates – Query coordinates, shape (n, 3) or (n, 2).

  • config – Configuration for IDW interpolation.

Returns:

  • values: Interpolated values at query points

  • neighbor_counts: Number of neighbors used in interpolation

Return type:

Tuple of (values, neighbor_counts) where