View source: R/geoR_dist_functions.R
Inverse distance calculation using custom distances
1 2 3 4 5 6 7 8 9 10 11 |
data |
vector of values to be interpolated at data coordinates |
coords |
coordinates of observation points. Can also be an object of class SpatialPoints*. Not necessary with loc.dist. |
locations |
coordinates of points where to provide predictions. Can also be an object of class SpatialPoints*. Not necessary with loc.dist. |
loc.dist |
Matrix of distances between data (rows) and locations (cols) |
idp |
specify the inverse distance weighting power. Default to 2. |
max.dist |
Maximum distance radius for neighbours search in the idw interpolation. maxdist is in km when longlat is TRUE (non-projected crs), in meters otherwise. If loc.dist is specified, maxdist should be in same distance unit. |
nmin |
if the number of nearest observations within distance maxdist is less than nmin, a missing value will be generated; see maxdist |
nmax |
the number of nearest observations that should be used for a kriging prediction or simulation, where nearest is defined in terms of the space of the spatial locations. By default, all observations are used |
longlat |
Logical Wether coordinates are not-projected (TRUE) or are projected (FALSE). |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.