<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Am 21.07.2014 12:06, schrieb Helmut
Kudrnovsky:<br>
</div>
<blockquote cite="mid:1405937202544-5152077.post@n6.nabble.com"
type="cite">
<blockquote type="cite">
<pre wrap=""> # the next line works only when the script es started from within the
</pre>
</blockquote>
<pre wrap="">terminal window from the started GRASS session
</pre>
<blockquote type="cite">
<pre wrap=""> #grass.run_command('r.viewshed', input = input_map, output = output_map,
coordinate=[2560807,5823616], obs_elev=100, max_dist=3000, overwrite=True)
</pre>
</blockquote>
<pre wrap="">
is GRASS_ADDON in the PATH?
r.viewshed is an addon saved in the GRASS_ADDON folder and not in GISBASE;
so if GRASS_ADDON isn't in PATH, r.viewshed may be not found.
HTH
-----
best regards
Helmut
--
View this message in context: <a class="moz-txt-link-freetext" href="http://osgeo-org.1560.x6.nabble.com/Python-GRASS-6-4-3-r-viewshed-tp5152070p5152077.html">http://osgeo-org.1560.x6.nabble.com/Python-GRASS-6-4-3-r-viewshed-tp5152070p5152077.html</a>
Sent from the Grass - Users mailing list archive at Nabble.com.
_______________________________________________
grass-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/grass-user">http://lists.osgeo.org/mailman/listinfo/grass-user</a>
</pre>
</blockquote>
<br>
<pre wrap="">Dear Helmut,
thanks for Your tipp.
And Yes the path is missing.
Could You please give me tipp how to phrase it correctly in the .py file?
I tried a few things, googled it, read a few things bu didn´t get it to work.
Here is a screenshot of my latest (dump) try and a print of the $GRASS_ADDON_PATH
<img alt="pathproblem" src="cid:part1.07040101.02080502@t-online.de" width="1294" height="826">
Best Regards
Stefan
</pre>
</body>
</html>