Hi all<div><br></div><div>I am generating viewshed of each observer location by iterating through a set of observer coordinate file through</div><div>Python code in Windows 7 . Below is the python command used in grass for each iteration. According to this, each time</div>
<div>loop iterates, output is overwritten with the same name. Now what i need is to keep each output of all the observer locations. For this, i need to</div><div>concatanate output name (i.e. 'viewshed' with loop index i which will be 'viewshed' + str(i) ). How is that possible within</div>
<div>this grass.run_command? </div><div><br></div><div>grass.run_command('r.viewshed', input = rinput, output = 'viewshed', coordinate = [x,y], obs_elev = oelv, tgt_elev = th, memory = 4098, flags = 'b', overwrite = True, quiet = True)</div>
<div><br></div><div>Cheers, Brian<span class="Apple-tab-span" style="white-space:pre">        </span></div>