wradlib.ipol.Nearest

Contents

wradlib.ipol.Nearest#

class wradlib.ipol.Nearest(src, trg)[source]#

Bases: IpolBase

Nearest-neighbour interpolation in N dimensions.

Parameters:
  • src (numpy.ndarray) – ndarray of floats, shape (npoints, ndims) or cKDTree object Data point coordinates of the source points.

  • trg (numpy.ndarray) – ndarray of floats, shape (npoints, ndims) Data point coordinates of the target points.

  • remove_missing (int) – Number of neighbours to consider in the presence of NaN, defaults to 0.

Keyword Arguments:

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

Examples

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

__call__(vals, *[, maxdist])

Evaluate interpolator for values given at the source points.