wradlib.ipol.Nearest

class wradlib.ipol.Nearest(src, trg)

Nearest-neighbour interpolation in N dimensions.

Parameters:
  • src (ndarray of floats, shape (npoints, ndims)) – Data point coordinates of the source points.
  • trg (ndarray of floats, shape (npoints, ndims)) – Data point coordinates of the target points.

Examples

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

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