View source: R/cdtSrcInterpolation_functions.R
cdtInterp | R Documentation |
This function interpolates stations data on a rectangular grid in the x-y plane. The radius of influence for the interpolation method varies for each grid point.
cdtInterp(
locations,
values,
newdata,
nmin = 4,
nmax = 10,
method = "idw",
spheric = FALSE,
vgm = NULL,
p = 2
)
locations |
A matrix containing the coordinates of the station data. The 1st column is the longitude and the 2nd coulmn the latitude. |
values |
A vector containing the values of the station. The length of |
newdata |
A matrix containing the coordinates of the grid to interpolate. The 1st column is the longitude and the 2nd coulmn the latitude. |
nmin |
The minimum number of stations to be used to interpolate a grid point. |
nmax |
The maximum number of stations to be used to interpolate a grid point. |
method |
Method to calculate weights for the interpolation. Should be "idw" (default), "shepard", "spheremap" or "kriging".
|
spheric |
If |
vgm |
A |
p |
The power to use in weight calculation. |
A matrix containing the interpolated data. The 1st and 2nd columns are the same as newdata
and the 3rd column contains the interpolated values.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.