Tomislav Hengl wrote:
Alessandro,
You need to separate the put the list of input grids as a character vector e.g.:
GRIDS=c("DSM1.sgrd,DSM2.sgrd,DSM3.sgrd")
...not when calling the rsaga.geoprocessor, if I recall correctly. The
high-level wrapper functions would accept a vector, but the
rsaga.geoprocessor would expect this:
GRIDS = "DSM1.sgrd;DSM2.sgrd;DSM3.sgrd"
Cheers
Alex
See also:
http://spatial-analyst.net/wiki/index.php?title=Software#SAGA_GIS
Maybe you should also study this posting guide:
http://spatial-analyst.net/wiki/index.php?title=Scripting_in_R
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, November 13, 2008 9:20 AM
To: r-sig-geo@stat.math.ethz.ch
Subject: [R-sig-Geo] problem with merge grids in R+SAGA
Importance: High
Hi All
when I use this function with R and SAGA:
rsaga.get.usage("grid_tools", 3)
rsaga.geoprocessor(lib="grid_tools", module=3,
param=list(GRIDS="DSM1.sgrd,DSM2.sgrd,DSM3.sgrd",GRID_TARGET="DSM.sgrd",TYPE=7, INTERPOL=2,
OVERLAP=0))
I have this problem
SAGA CMD 2.0.3
library path: C:\Windows/modules
library name: grid_tools
module name : Merging
author : (c) 2003 by O.Conrad
Load grid: DSM1.sgrd,DSM2.sgrd,DSM3.sgrd...
failed
error: Grid file could not be opened.
error: input file [DSM1.sgrd,DSM2.sgrd,DSM3.sgrd]
error: empty input list [GRIDS]
error: executing module [Merging]
I don't understand very well where is the problem of the code.
thanks for help
Ale
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo
--
Alexander Brenning
[EMAIL PROTECTED] - T +1-519-888-4567 ext 35783
Department of Geography and Environmental Management
University of Waterloo
200 University Ave. W - Waterloo, ON - Canada N2L 3G1
http://www.fes.uwaterloo.ca/geography/faculty/brenning/
_______________________________________________
R-sig-Geo mailing list
R-sig-Geo@stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo