wradlib.ipol.Idw#
- class wradlib.ipol.Idw(src, trg, nnearest=4, p=2.)[source]#
Bases:
IpolBase
Inverse distance weighting interpolation in N dimensions.
- Parameters
src (
numpy.ndarray
) – ndarray of floats, shape (npoints, ndims) of 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.nnearest (
int
) – max. number of neighbours to be consideredp (
float
) – inverse distance power used in 1/dist**premove_missing (
bool
) – If True masks NaN values in the data values, defaults to False
- Keyword Arguments
**kwargs (
dict
) – keyword arguments of ipclass (see class documentation)
Examples
See How to use wradlib's ipol module for interpolation tasks?.
Note
|
Evaluate interpolator for values given at the source points. |