[R-sig-Geo] treating a Digital Elevation Map in RSAGA
Johan Van de Wauw
johan.vandewauw at gmail.com
Mon Jul 4 11:14:00 CEST 2011
This version of RSAGA:
http://zadeh.ugent.be/~johan/saga/RSAGA_0.91-1.5.tar.gz
contains a few fixes for running saga on debian/ubuntu, among others
the path is set correctly.
Installing is easy, run in a terminal:
wget http://zadeh.ugent.be/~johan/saga/RSAGA_0.91-1.5.tar.gz
R CMD INSTALL RSAGA_0.91-1.5.tar.gz
Johan
On Fri, Jul 1, 2011 at 5:11 PM, Katalin Csillery
<kati.csillery at gmail.com> wrote:
> Hi there,
>
> I have a Digital Elevation Map (mnt50.asc) for which I would like to
> calculate slope, curvature etc. using rsaga.local.morphometry (from
> RSAGA).
>
> I am on Ubuntu. I installed saga in /usr/bin (i.e. I have saga_cmd here)
> The path to mnt50.asc is /home/kati/projects/cemagref/maps
>
> I get the following error when I first try to get the DEM in the
> required format:
>
>> rsaga.esri.to.sgrd(in.grids="mnt50", in.path="/home/kati/projects/cemagref/maps", os.default.path="/usr/bin", cmd="saga_cmd")
> Error in setwd(env$workspace) : character argument expected
> In addition: Warning message:
> In rsaga.env() :
> SAGA command line program 'saga_cmd' not found in any of the paths
> /usr/lib/R/library/RSAGA/saga_vc
>
> /home/kati/projects/cemagref/maps
> /usr/local/bin
>
> 1. "Error in setwd(env$workspace) : character argument expected" -
> this I don't understand.
> 2. it looks for saga_cmd at the wrong place: the default
> os.default.path and not what I have given.
>
> Any suggestions?
>
> Thanks in advance,
> Kati
>
>
>
>
> --
> Katalin Csilléry, Ph.D.
> UR Écosystèmes montagnards
> CEMAGREF, 2 rue de la papeterie
> 38402 Saint Martin d'Hères, France
> Tel +33 (0)4 76 76 27 80
> Fax +33 (0)4 76 51 38 03
> https://sites.google.com/site/katalincsillery/
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
More information about the R-sig-Geo
mailing list