wradlib.ipol.Nearest#
- class wradlib.ipol.Nearest(src, trg)[source]#
Bases:
IpolBaseNearest-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 notebooks/interpolation/interpolation.
Note
|
Evaluate interpolator for values given at the source points. |