rsaga.sgrd.to.esri {RSAGA} | R Documentation |
Convert SAGA grids to ESRI ASCII/binary grids
Description
rsaga.sgrd.to.esri
converts grid files from SAGA's (version 2) grid
format (.sgrd) to ESRI's ASCII (.asc) and binary (.flt) format.
Usage
rsaga.sgrd.to.esri(
in.sgrds,
out.grids,
out.path,
format = "ascii",
georef = "corner",
prec = 5,
...
)
Arguments
in.sgrds |
character vector of SAGA grid files ( |
out.grids |
character vector of ESRI ASCII/float output file names;
defaults to |
out.path |
folder for |
format |
output file format, either |
georef |
character: |
prec |
number of digits when writing floating point values to ASCII grid
files; either a single number (to be replicated if necessary), or a numeric
vector of length |
... |
optional arguments to be passed to
|
Value
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.
Note
This function uses module 0 from the SAGA library io_grid
.
Author(s)
Alexander Brenning (R interface), Olaf Conrad (SAGA module)
See Also
rsaga.esri.wrapper()
for an efficient way of applying
RSAGA to ESRI ASCII/binary grids; rsaga.env()