rsaga.target {RSAGA} | R Documentation |
Define target grid for interpolation
Description
Define the resolution and extent of a target grid for interpolation by SAGA modules based on (1) user-provided x/y coordinates, (2) an existing SAGA grid file, or (3) the header data of an ASCII grid. Intended to be used with RSAGA's interpolation functions.
Usage
rsaga.target(
target = c("user.defined", "target.grid", "header"),
user.cellsize = 100,
user.x.extent,
user.y.extent,
target.grid,
header,
env = rsaga.env()
)
Arguments
target |
character: method used for defining the target grid |
user.cellsize |
Only for |
user.x.extent |
See |
user.y.extent |
Only for |
target.grid |
Only for |
header |
Only for |
env |
A SAGA geoprocessing environment, see |
Note
This function is to be used with RSAGA functions
rsaga.inverse.distance()
, rsaga.nearest.neighbour()
and rsaga.modified.quadratic.shephard()
. Note that these are
currently only compatible with SAGA GIS 2.0.5 and higher.
See Also
Examples
## Not run:
# IDW interpolation of attribute "z" from the point shapefile
# 'points.shp' to a grid with the same extent and resolution
# as the (pre-existing) geology grid:
rsaga.inverse.distance("points", "dem", field = "z", maxdist = 1000,
target = rsaga.target(target="target.grid",
target.grid = "geology"))
## End(Not run)