Skip to content

Probably beginner's problem

3 messages · Ludwig Hilger, Johan Van de Wauw

#
Helly everybody,

I am a RSAGA-beginner and I am trying to use some simple modules. Although I
have combed through this forum for an answer to my questions, I could not
make my modules run. So I post my two problems and I am hoping for some
help.

1.	I am trying to add 10 *.sgrd with rsaga.grid.calculus:

setwd("C:/Users/Ludwig Hilger/Documents/Studium/SS 2010/SEDAG - HIWI/Daten
und Modul/Zwieselbachtal/")
#rsaga.get.modules("grid_calculus")                        #Infos ?ber ein
eine Modulbibliothek
#rsaga.get.usage("grid_calculus", 1)                       #Infos ?ber die
Parameter des Moduls
rsaga.grid.calculus(in.grids = c("ZBT_mure1_modvel", "ZBT_mure2_modvel",
"ZBT_mure3_modvel", "ZBT_mure4_modvel", "ZBT_mure5_modvel",
"ZBT_mure6_modvel", "ZBT_mure7_modvel", "ZBT_mure8_modvel",
"ZBT_mure9_modvel", "ZBT_mure10_modvel"), 
out.grid = '"ZBT_muren1_10_modvel2"', formula = "a+b+c+d+e+f+g+h+i", silent
= FALSE)

I get back:

Unknown option 'INPUT'
Usage: 1 -GRIDS <str> -RESULT <str> [-FORMULA <str>]
  -GRIDS:<str>          Grids
        Grid list (input)
  -RESULT:<str>         Result
        Grid (output)
  -FORMULA:<str>        Formula
        Text

error: executing module [Grid Calculator]

I have tried solving it by using rsaga.geoprocessor, using double quotation
marks for the file specifications, the alternative for formula specification
(~), but still it does not work.

2.	I am trying to use ?Shapes to grid?. I am wondering where to specify the
target grid dimensions if you choose Target to be 1:

rsaga.geoprocessor(lib="grid_gridding", silent = FALSE, module = 0, 
param=list(
GRID_GRID='"C:/Users/Ludwig Hilger/Documents/Studium/SS 2010/SEDAG -
HIWI/Daten und Modul/Zwieselbachtal/In R berechnete
Grids/ZBT_dreiteilige_auswahl.buff.sgrd"', 
INPUT='"ZBT_dreiteilige_auswahl_buff.shp"', 
FIELD=8,
GRID_TYPE=0,
LINE_TYPE=1,
TARGET=1
))

I get back:

Load shapes: ZBT_dreiteilige_auswahl_buff.shp...
ready

Parameters

Shapes: ZBT_dreiteilige_auswahl_buff
Attribute: CAT
Method for Lines: thick
Preferred Target Grid Type: Integer (1 byte)
Target Grid: grid


error: executing module [Shapes to Grid]

Thank you,

Ludwig / Eichst?tt, Germany
#
The current version of RSAGA is not (yet) compatible with saga 2.0.5.
Installing saga 2.0.4 should fix your problem (both versions can live
together, no need to uninstall saga 2.0.5).

Johan

On Thu, Sep 16, 2010 at 2:59 PM, Ludwig Hilger
<ludwig.hilger at ku-eichstaett.de> wrote:
2 days later