Performs the interpolation of points from a raster object.
mosaic_interpolate(mosaic, points, method = c("bilinear", "loess", "idw"))
An SpatRaster
object with the same extent and crs from mosaic
An SpatRaster
object
An sf
object with the points for x and y coordinates, usually
obtained with shapefile_build()
. Alternatively, an external shapefile
imported with shapefile_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.
One of "bilinear" (default), "loess" (local regression) or "idw" (Inverse Distance Weighting).