Performs the interpolation of points from a raster object.
Usage
mosaic_interpolate(mosaic, points, method = c("bilinear", "loess", "idw"))
Arguments
- mosaic
An
SpatRaster
object- points
An
sf
object with the points for x and y coordinates, usually obtained withshapefile_build()
. Alternatively, an external shapefile imported withshapefile_input()
containing the x and y coordinates can be used. The function will handle most used shapefile formats (eg., .shp, .rds) and convert the imported shapefile to an sf object.- method
One of "bilinear" (default), "loess" (local regression) or "idw" (Inverse Distance Weighting).