class wradlib.ipol.Idw(src, trg, nnearest=4, p=2.)

Inverse distance weighting interpolation in N dimensions.

  • src (ndarray of floats, shape (npoints, ndims) of cKDTree object) – Data point coordinates of the source points.
  • trg (ndarray of floats, shape (npoints, ndims)) – Data point coordinates of the target points.
  • nnearest (integer - max. number of neighbours to be considered) –
  • p (float - inverse distance power used in 1/dist**p) –
  • remove_missing (bool) – If True masks NaN values in the data values, defaults to False
Keyword Arguments:

**kwargs (keyword arguments of ipclass (see class documentation)) –


See How to use wradlib's ipol module for interpolation tasks?.

__call__(vals[, maxdist]) Evaluate interpolator for values given at the source points.