<div dir="ltr"><div><div><br><br>On Wed, Nov 1, 2017 at 9:49 PM, karsten <<a href="mailto:karsten@terragis.net">karsten@terragis.net</a>> wrote:<br>><br>><br>> For reference for other beginners here:<br>> I did not import the file nor link it externally, thus that step was<br>> missing.<br>> I got it to work and the updated script is:<br>> -------------<br>><br>> export GRASS_MESSAGE_FORMAT=plain<br>><br>> r.in.gdal input="/var/www/mapdata/dem30m.tif" output=digim<br>><br>> g.region raster=digim<br>><br>> r.viewshed -b input=digim output=vis1.tif<br>> coordinates=1127369.7301780644,6268333.160068306 observer_elevation=120<br>> max_distance=1800 memory=500<br>><br>> ----------------<br>> However the last step failed in Grass 7.2.2 on ubuntu Xenial,<br><br></div>How did it fail? Can you provide the error messages?<br><br></div>Markus M<br><div><div><br>> thus I needed<br>> to inmstall an older version, and in Grass 7.0.3 it is working fine.<br>><br>> Cheers<br>> Karsten<br>><br>><br>> -----Original Message-----<br>> From: karsten [mailto:<a href="mailto:karsten@terragis.net">karsten@terragis.net</a>]<br>> Sent: Mittwoch, 1. November 2017 20:02<br>> To: '<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a>'<br>> Subject: where is grass looking for the input tif - r.viewshed run from bash<br>> script<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 r.viewshed -b<br>> input="/var/www/results/dem30m.tif" output="/var/www/results/vis.tif"<br>> coordinates=1127369.7301780644,6268333.160068306 observer_elevation=120<br>> max_distance=1800 memory=2000<br>> ------------<br>><br>> Where is Grass looking for the input tif and how do I need to specify that ?<br>><br>> Thanks<br>><br>> Karsten Vennemann<br>> Terra GIS LTD<br>><br>> _______________________________________________<br>> grass-user mailing list<br>> <a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>> <a href="https://lists.osgeo.org/mailman/listinfo/grass-user">https://lists.osgeo.org/mailman/listinfo/grass-user</a><br><br></div></div></div>