two-dimensional numerical interpolation
Usage
interp(z, coords, predicts, method = "bilinear", polyorder = 3, na.rm = TRUE)
Arguments
- z
The attribute vector
- coords
The coordinate matrix
- predicts
Matrix of locations to predict
- method
(optional) Interpolation method
- polyorder
(optional) Degree of the polynomial
- na.rm
(optional) Whether NA
values should be stripped
Examples
data("ndvi")
interp(ndvi$NDVI,ndvi[,c("X","Y")],
matrix(c(2745,2455),ncol = 2))
#> [1] 0.8584988