View source: R/RSAGA-modules.R
rsaga.target | R Documentation |
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.
rsaga.target(
target = c("user.defined", "target.grid", "header"),
user.cellsize = 100,
user.x.extent,
user.y.extent,
target.grid,
header,
env = rsaga.env()
)
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 |
a list containing information such as the bounding box of a target grid
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.
read.ascii.grid.header()
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.