[GRASS-user] were is grass looking for the input tif - r.viewshed run from bash script

Werner Macho werner.macho at gmail.com
Thu Nov 2 00:16:59 PDT 2017


Hi Karsten,

Not sure and not tested, but according to the error
Character </> not allowed.
I'd say you have to escape the "/" seperator.
But this is just a rough guess right now.

regards
Werner

On Wed, Nov 1, 2017 at 6:40 PM, karsten <karsten at terragis.net> wrote:

> I am trying to run r.viewshed from a bash script on ubuntu following
> instruction on https://grasswiki.osgeo.org/wiki/GRASS_and_Shell "GRASS
> Batch
> jobs". I got an error that my input tif file is not found.
> I tried specifying the full path to file but get then the Error Illegal
> filename
> </var/www/mapdata/ilpoe/layers/results/dem30m_cut_
> 852af91d4fe5fd938fa57893e5
> 991dfe.tif> Character </> not allowed.
> My 3 line script is below:
> --------------
> export GRASS_MESSAGE_FORMAT=plain
> g.region n=6446299.8941608080640435 s=5942051.4022588636726141
> w=779220.9745125266490504 e=1224529.8597663976252079 res=30
> r.viewshed -b input="/var/www/results/dem30m.tif"
> output="/var/www/results/vis.tif"
> coordinates=1127369.7301780644,6268333.160068306 observer_elevation=120
> max_distance=1800 memory=2000
> ------------
>
> Where is Grass looking for the input tif and how do I need to specify that
> ?
>
> Thanks
>
> Karsten Vennemann
> Terra GIS LTD
>
> _______________________________________________
> grass-user mailing list
> grass-user at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/grass-user
-------------- nächster Teil --------------
Ein Dateianhang mit HTML-Daten wurde abgetrennt...
URL: <http://lists.osgeo.org/pipermail/grass-user/attachments/20171102/bafd108f/attachment.html>


More information about the grass-user mailing list