View source: R/RSAGA-modules.R
rsaga.esri.to.sgrd | R Documentation |
rsaga.esri.to.sgrd
converts grid files from ESRI's ASCII (.asc) and binary (.flt) format to SAGA's (version 2) grid format (.sgrd).
rsaga.esri.to.sgrd( in.grids, out.sgrds = set.file.extension(in.grids, ".sgrd"), in.path, ... )
in.grids |
character vector of ESRI ASCII/binary grid files (default file extension: |
out.sgrds |
character vector of output SAGA grid files; defaults to |
in.path |
folder with |
... |
optional arguments to be passed to |
The type of object returned depends on the intern
argument passed to the rsaga.geoprocessor()
. For intern=FALSE
it is a numerical error code (0: success), or otherwise (default) a character vector with the module's console output.
If multiple in.grids
are converted, the result will be a vector of numerical error codes of the same length, or the combination of the console outputs with c()
.
This function uses module 1 from the SAGA library io_grid
.
Alexander Brenning (R interface), Olaf Conrad (SAGA module)
rsaga.esri.wrapper()
for an efficient way of applying RSAGA to ESRI ASCII/binary grids; rsaga.env()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.