Re: [GRASS-user] r.viewshed Python Script OSError

2013-05-29 Thread Martin Lacayo
markus.metz.gisw...@gmail.com wrote: On Tue, May 28, 2013 at 7:09 PM, Martin Lacayo mlac...@stanford.edu wrote: Hi Markus, I did install r.viewshed (it is located in ~/.grass6/addons/), and the full path does appear in $PATH. I am executing the Python script from outside of GRASS

Re: [GRASS-user] r.viewshed Python Script OSError

2013-05-28 Thread Martin Lacayo
ArcGIS for users on Windows. When I start GRASS (in text mode) it says Welcome to GRASS 6.4.2 (2012). Thank you, Martin On Sun, May 26, 2013 at 1:27 PM, Markus Metz markus.metz.gisw...@gmail.com wrote: On Fri, May 24, 2013 at 11:32 PM, Martin Lacayo mlac...@stanford.edu wrote: Hello, I am

Re: [GRASS-user] Getting Started with GRASS Python Scripts

2013-05-24 Thread Martin Lacayo
- Hash: SHA1 Il 23/05/2013 22:49, Martin Lacayo ha scritto: My ultimate goal is to decrease our development time for our open source ecosystem service tools: http://invest-natcap.googlecode.com, but more specifically at the moment I am trying to use r.viewshed so I do not have to write my own

[GRASS-user] r.viewshed Python Script OSError

2013-05-24 Thread Martin Lacayo
Hello, I am using GRASS 6.4 on Debian. I am trying to make a call to r.viewshed from Python, but it fails with the following exception: OSError: [Errno 2] No such file or directory Any suggestions? Thank you, Martin ___ grass-user mailing list

[GRASS-user] Getting Started with GRASS Python Scripts

2013-05-23 Thread Martin Lacayo
Hello, I am having trouble getting started with GRASS Python scripts. I am using GRASS 6.4 on Debian. Could some provide a basic example of a Python script that imports a raster and exports the same raster? In particular I am interested in seeing the entire setup of a database (locally on disk),

Re: [GRASS-user] Getting Started with GRASS Python Scripts

2013-05-23 Thread Martin Lacayo
Rich, Thank you. Yes, that does help. I hadn't realized that in this case database was essentially synonymous with user directory. Several things have now clicked into place. -Martin On Thu, May 23, 2013 at 2:06 PM, Rich Shepard rshep...@appl-ecosys.com wrote: On Thu, 23 May 2013, Martin

Re: [GRASS-user] Getting Started with GRASS Python Scripts

2013-05-23 Thread Martin Lacayo
Is there a command to delete a location? I found g.mremove, but that seems to remove data, not locations. Thank you, Martin On Thu, May 23, 2013 at 3:02 PM, Rich Shepard rshep...@appl-ecosys.com wrote: On Thu, 23 May 2013, Martin Lacayo wrote: Thank you. Yes, that does help. I hadn't realized