R/analyze.R
pts_to_rast_idw.Rd
Interpolate from points to raster using inverse-distance weighting
(terra::interpIDW()
). The further the input point from the destination pixel
in the output raster, the less its value is applied. The dimensions of the
output raster are automatically calculated based on approaching 100 pixels in
the maximum dimension (of longitude or latitude) based on the extent of the
area of interest.
pts_to_rast_idw(
pts,
fld,
aoi,
radius = 1.5,
power = 1.3,
smooth = 0.2,
maxPoints = Inf,
minPoints = 1,
near = FALSE,
fill = NA,
out_tif = NULL,
verbose = F
)
input points as simple features sf::sf
quoted string of field from pts
with z-value to interpolate
area of interest as simple features sf::sf
argument for terra::interpIDW()
; default = 1.5
argument for terra::interpIDW()
; default = 1.3
argument for terra::interpIDW()
; default = 0.2
argument for terra::interpIDW()
; default = Inf
argument for terra::interpIDW()
; default = 1
argument for terra::interpIDW()
; default = FALSE
argument for terra::interpIDW()
; default = NA
output path to write raster tif using terra::writeRaster()
; default = NULL
show messages of all variables used; default = FALSE
terra::rast()
object