[GRASS-user] Python + GRASS 6.4.3 + r.viewshed

Büro Seling buero-seling at t-online.de
Mon Jul 21 04:33:16 PDT 2014


Am 21.07.2014 12:06, schrieb Helmut Kudrnovsky:
>>     # the next line works only when the script es started from within the
> terminal window from the started GRASS session
>>    #grass.run_command('r.viewshed', input = input_map, output = output_map,
>> coordinate=[2560807,5823616], obs_elev=100, max_dist=3000, overwrite=True)
> 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: http://osgeo-org.1560.x6.nabble.com/Python-GRASS-6-4-3-r-viewshed-tp5152070p5152077.html
> Sent from the Grass - Users mailing list archive at Nabble.com.
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-user
>

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

pathproblem

Best Regards
Stefan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20140721/5accda80/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PathProblem.jpg
Type: image/jpeg
Size: 148801 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20140721/5accda80/attachment-0001.jpg>


More information about the grass-user mailing list