24.12.2013 Views

wradlib Documentation - Bitbucket

wradlib Documentation - Bitbucket

wradlib Documentation - Bitbucket

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>wradlib</strong> <strong>Documentation</strong>, Release 0.1.1<br />

Idw<br />

Linear<br />

interpolate<br />

interpolate_polar<br />

Table 3.6 – continued from previous page<br />

Inverse distance weighting interpolation in N dimensions.<br />

Interface to the scipy.interpolate.LinearNDInterpolator class.<br />

Convenience function to use the interpolation classes in an efficient way<br />

Convenience function to interpolate polar data<br />

3.6.1 <strong>wradlib</strong>.ipol.Nearest<br />

class <strong>wradlib</strong>.ipol.Nearest(src, trg)<br />

Nearest-neighbour interpolation in N dimensions.<br />

Parameters src : ndarray of floats, shape (npoints, ndims)<br />

Data point coordinates of the source points.<br />

trg : ndarray of floats, shape (npoints, ndims)<br />

Data point coordinates of the target points.<br />

Notes<br />

Uses scipy.spatial.cKDTree<br />

__call__(vals[, maxdist])<br />

Evaluate interpolator for values given at the source points.<br />

<strong>wradlib</strong>.ipol.Nearest.__call__<br />

Nearest.__call__(vals, maxdist=None)<br />

Evaluate interpolator for values given at the source points.<br />

Parameters vals : ndarray of float, shape (numsourcepoints, ...)<br />

Values at the source points which to interpolate<br />

maxdist : the maximum distance up to which an interpolated values is<br />

assigned - if maxdist is exceeded, np.nan will be assigned If maxdist==None, values<br />

will be assigned everywhere<br />

Returns output : ndarray of float with shape (numtargetpoints,...)<br />

3.6.2 <strong>wradlib</strong>.ipol.Idw<br />

class <strong>wradlib</strong>.ipol.Idw(src, trg, nnearest=4, p=2.)<br />

Inverse distance weighting interpolation in N dimensions.<br />

Parameters src : ndarray of floats, shape (npoints, ndims)<br />

Data point coordinates of the source points.<br />

trg : ndarray of floats, shape (npoints, ndims)<br />

Data point coordinates of the target points.<br />

nnearest : integer - max. number of neighbours to be considered<br />

p : float - inverse distance power used in 1/dist**p<br />

48 Chapter 3. Library Reference

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!