[R-sig-Geo] RSAGA and a custom module
Alexander Brenning
alexander.brenning at uwaterloo.ca
Thu Mar 21 14:19:07 CET 2013
Hi Ludwig,
RSAGA functions - including rsaga.get.usage and rsaga.get.modules - use the saga_cmd command line interface to access modules. So if saga_cmd was able to see your module, so should RSAGA. Is it possible that your module isn't fully integrated into saga_cmd? If that's the case, you may want to discuss this issue in one of the forums on the SAGA GIS sourceforge project website
http://sourceforge.net/projects/saga-gis/
On the other hand, rsaga.get.libraries actually just lists the names of all .dll files located in the (default or specified) modules folder. So if your library is not included in that list, maybe your folder settings are incorrect? Most RSAGA functions take an 'env' argument, which is a list that is populated through a call to rsaga.env(); you may specify a 'modules' path in the rsaga.env call. Similarly, rsaga.get.libraries takes an optional 'path' argument that specifies where to search for libraries.
I hope this helps
Alex
Date: Wed, 20 Mar 2013 08:19:39 -0700 (PDT)
From: Ludwig Hilger <l.hilger at ku.de>
To: r-sig-geo at r-project.org
Subject: [R-sig-Geo] RSAGA and a custom module
Message-ID: <1363792779572-7583108.post at n2.nabble.com>
Content-Type: text/plain; charset=UTF-8
Dear list,
A colleague of mine has written a SAGA module doing a Cut/Fill calculation
(which works fine from SAGA GUI) and I want to use it from within R. I have
copied the *.dll of the module to the modules folder of SAGA. I successfully
connect to SAGA but then I cannot find the module (i.e. using
rsaga.get.modules() or rsaga.get.libraries()). Is there a way to use
self-made modules with RSAGA? This is SAGA 2.0.6.
Thanks a lot in advance,
Ludwig
sessionInfo():
R version 2.15.2 (2012-10-26)
Platform: x86_64-w64-mingw32/x64 (64-bit)
locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252
LC_MONETARY=German_Germany.1252 LC_NUMERIC=C
LC_TIME=German_Germany.1252
attached base packages:
[1] grDevices datasets splines graphics stats tcltk utils
methods base
other attached packages:
[1] RSAGA_0.93-2 plyr_1.7.1 shapefiles_0.6 foreign_0.8-52
gstat_1.0-14 spacetime_0.8-0 xts_0.8-8 zoo_1.7-9 sp_1.0-5
svSocket_0.9-53 TinnR_1.0-5 R2HTML_2.2
[13] Hmisc_3.9-3 survival_2.36-14
loaded via a namespace (and not attached):
[1] cluster_1.14.3 grid_2.15.2 lattice_0.20-10 svMisc_0.9-65
tools_2.15.2
-----
Dipl. Geogr. Ludwig Hilger
Wiss. MA
Lehrstuhl f?r Physische Geographie
Katholische Universit?t Eichst?tt-Ingolstadt
Ostenstra?e 18
85072 Eichst?tt
Tel.: 08421-93-1180
--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/RSAGA-and-a-custom-module-tp7583108.html
Sent from the R-sig-geo mailing list archive at Nabble.com.
--
Alexander Brenning
brenning at uwaterloo.ca - 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
UW: https://uwaterloo.ca/gem/people-profiles/alexander-brenning
Academia.edu: http://uwaterloo.academia.edu/AlexanderBrenning
LinkedIn: http://ca.linkedin.com/pub/alexander-brenning/3/242/440
More information about the R-sig-Geo
mailing list