<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=us-ascii" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 11.00.9600.18817"></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=278081309-02112017><FONT color=#0000ff><FONT 
face=Arial><FONT size=2><FONT color=#000080>Yes got it working with Grass 7.0.3 
(as 7.2.2 fails with <SPAN class=254300521-01112017>"Error in `r.viewshed': 
free(): invalid pointer:" </SPAN></FONT></FONT></FONT>
<DIV dir=ltr align=left><SPAN class=254300521-01112017><SPAN 
class=254300521-01112017><FONT color=#000080 size=2 face=Arial>plus a 
Backtrace and Memory map like in </FONT><A 
title=blocked::https://trac.osgeo.org/grass/ticket/3285 
href="https://trac.osgeo.org/grass/ticket/3285"><FONT size=2 
face=Arial>https://trac.osgeo.org/grass/ticket/3285</FONT></A><FONT 
face=Arial><FONT size=2><FONT color=#000080> <SPAN 
class=278081309-02112017>)</SPAN></FONT></FONT></FONT></SPAN></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=254300521-01112017><SPAN 
class=254300521-01112017><FONT face=Arial><FONT color=#000080 size=2><SPAN 
class=278081309-02112017>Thanks</SPAN></FONT></FONT></SPAN></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=254300521-01112017><SPAN 
class=254300521-01112017><FONT face=Arial><FONT color=#000080 size=2><SPAN 
class=278081309-02112017>Karsten</SPAN></FONT></FONT></SPAN></SPAN></DIV></FONT></SPAN></DIV><BR>
<DIV lang=en-us class=OutlookMessageHeader dir=ltr align=left>
<HR tabIndex=-1>
<FONT size=2 face=Tahoma><B>From:</B> neteler.osgeo@gmail.com 
[mailto:neteler.osgeo@gmail.com] <B>On Behalf Of </B>Markus 
Neteler<BR><B>Sent:</B> Donnerstag, 2. November 2017 09:38<BR><B>To:</B> karsten 
vennemann<BR><B>Cc:</B> GRASS user list<BR><B>Subject:</B> Re: [GRASS-user] were 
is grass looking for the input tif - r.viewshed run from bash 
script<BR></FONT><BR></DIV>
<DIV></DIV>
<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></BODY></HTML>