[R-sig-Geo] problem with merge grids in R+SAGA

Tomislav Hengl T.Hengl at uva.nl
Thu Nov 13 11:00:49 CET 2008


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")


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: r-sig-geo-bounces at stat.math.ethz.ch [mailto:r-sig-geo-bounces at stat.math.ethz.ch] On Behalf Of
alessandro.montaghi at unifi.it
Sent: Thursday, November 13, 2008 9:20 AM
To: r-sig-geo at 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 at stat.math.ethz.ch
https://stat.ethz.ch/mailman/listinfo/r-sig-geo




More information about the R-sig-Geo mailing list