<p dir="ltr">On Nov 2, 2017 6:45 AM, "karsten" <<a href="mailto:karsten@terragis.net">karsten@terragis.net</a>> wrote:<br>
><br>
> I am trying to run r.viewshed from a bash script on ubuntu following<br>
> instruction on <a href="https://grasswiki.osgeo.org/wiki/GRASS_and_Shell">https://grasswiki.osgeo.org/wiki/GRASS_and_Shell</a> "GRASS Batch<br>
> jobs". I got an error that my input tif file is not found.<br>
> I tried specifying the full path to file but get then the Error Illegal<br>
> filename<br>
> </var/www/mapdata/ilpoe/layers/results/dem30m_cut_852af91d4fe5fd938fa57893e5<br>
> 991dfe.tif> Character </> not allowed.<br>
> My 3 line script is below:<br>
> --------------<br>
> export GRASS_MESSAGE_FORMAT=plain<br>
> g.region n=6446299.8941608080640435 s=5942051.4022588636726141<br>
> w=779220.9745125266490504 e=1224529.8597663976252079 res=30<br>
> r.viewshed -b input="/var/www/results/dem30m.tif"<br>
> output="/var/www/results/vis.tif"</p>
<p dir="ltr">You need to import or register the map first. Likewise for the export.</p>
<p dir="ltr">See for an example<br>
<a href="https://grass.osgeo.org/grass72/manuals/r.external.html#processing-workflow-without-data-import-and-export">https://grass.osgeo.org/grass72/manuals/r.external.html#processing-workflow-without-data-import-and-export</a></p>
<p dir="ltr"> Best<br>
Markus</p>