<div dir="ltr">Hi all<div><br></div><div>I'm trying to run r.denoise from a python script but I'm getting some errors (below). Apparently this is about using pipe to redirect outputs (r.denoise is a bash script).</div><div><br></div><div>any ideas to work around this situation?</div><div><br></div><div>thanks</div><div><br></div><div>Carlos</div><div><br></div><div><br></div><div><br></div><div><br></div><div><div>>>> grass.run_command('r.denoise', input=elev, output=out_avg, iterations=n_iter, threshold=thrshld, epsg=4326, overwrite=ow)</div><div>Traceback (most recent call last):</div><div> File "<stdin>", line 1, in <module></div><div> File "/usr/local/Cellar/grass-73/7.3.svn_src_snapshot_latest/grass-7.3.svn/etc/python/grass/script/core.py", line 408, in run_command</div><div> ps = start_command(*args, **kwargs)</div><div> File "/usr/local/Cellar/grass-73/7.3.svn_src_snapshot_latest/grass-7.3.svn/etc/python/grass/script/core.py", line 377, in start_command</div><div> return Popen(args, **popts)</div><div> File "/usr/local/Cellar/grass-73/7.3.svn_src_snapshot_latest/grass-7.3.svn/etc/python/grass/script/core.py", line 74, in __init__</div><div> subprocess.Popen.__init__(self, args, **kwargs)</div><div> File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 710, in __init__</div><div> errread, errwrite)</div><div> File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1335, in _execute_child</div><div> raise child_exception</div><div>OSError: [Errno 2] No such file or directory</div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Prof. Carlos Henrique Grohmann<br>Institute of Energy and Environment - Univ. of São Paulo, Brazil<div>- Digital Terrain Analysis | GIS | Remote Sensing - </div><div><br></div><div><a href="http://carlosgrohmann.com/" target="_blank">http://carlosgrohmann.com</a></div><div><a href="http://orcid.org/0000-0001-5073-5572" style="font-size:13px;color:rgb(17,85,204);font-family:arial,sans-serif;background-color:rgb(255,255,255)" target="_blank">http://orcid.org/0000-0001-5073-5572</a><br><div>________________<br>Can’t stop the signal.</div></div></div></div>
</div></div>