<div dir="ltr">I answered your question at<div><br></div><div><a href="http://gis.stackexchange.com/questions/90784/why-my-python-script-of-r-watershed-has-no-output/91399#91399">http://gis.stackexchange.com/questions/90784/why-my-python-script-of-r-watershed-has-no-output/91399#91399</a></div>

<div><br></div><div>and added an example with full module call:</div><div><br></div><div><pre class="" style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;font-size:12px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;background-color:rgb(238,238,238);color:rgb(57,51,24);word-wrap:normal;line-height:18px">

<code style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;color:rgb(34,34,34);white-space:inherit"><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">gcore</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">.</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">run_command</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">(</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'r.watershed'</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> elevation</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'elev_lid792_1m'</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> drainage</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'elev_lid_drainage'</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> half</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'elev_lid_half_basin'</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> accumulation</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'elev_lid_accumulation'</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> basin</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'elev_lid_basin'</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> stream</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'elev_lid_stream'</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> visual</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'elev_lid_visual'</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> length</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'elev_lid_length_slope'</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> slope</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'elev_lid_slope_steepness'</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> threshold</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(149,56,56)">10</span><span class="" style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">)</span></code></pre>

</div><div><div><br></div><div>I suppose that the error you are getting is:</div><div><br></div><div>Sorry, <drainge> is not a valid parameter<br></div><div>(followed by a full module help)</div><div><br></div><div>

Your command in this email has an typo: it should be `drainage` not `drainge`. As MarkusN pointed out in the other answer at SE.<br></div><div><br></div><div>This command works for me if I change the elevation map to something I have:</div>

<div><br></div><div><div>gcore.run_command('r.watershed', elevation = 'hc', threshold = 5000, accumulation = 'acc1', drainage = 'dra1', basin = 'bas1', stream = 'str1', half = 'hbas1', visual = 'vis1')</div>

</div><div><br></div></div><div>Best,</div><div>Vaclav</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 31, 2014 at 12:56 PM, Heinz Chen <span dir="ltr"><<a href="mailto:liebenhans@gmail.com" target="_blank">liebenhans@gmail.com</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default"><h1 style="margin-top:0px;margin-right:0px;margin-left:0px;padding:12px 0px;border:0px;vertical-align:baseline;color:rgb(68,68,68);background-color:rgba(248,248,248,0.6);margin-bottom:0px!important">


<span style="font-weight:normal"><font face="tahoma, sans-serif" size="4">As title, I want to use r.watershed module, and here's my python script in pyscripter,</font></span></h1><div style="font-size:large;font-family:pmingliu,serif">


<pre style="margin-top:0px;margin-bottom:10px;padding:5px;border:0px;font-size:12px;vertical-align:baseline;overflow:auto;width:auto;max-height:600px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;background-color:rgb(238,238,238);color:rgb(57,51,24);word-wrap:normal;line-height:18px">

<code style="margin:0px;padding:0px;border:0px;vertical-align:baseline;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,serif;color:rgb(34,34,34);white-space:inherit"><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(138,74,11)">import</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> os
</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(138,74,11)">import</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> sys

</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(134,134,134)">#set up GRASS environment variables</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">
sys</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">.</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">path</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">.</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">append</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">(</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">os</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">.</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">path</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">.</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">join</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">(</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">os</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">.</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">environ</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">[</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'GISBASE'</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">],</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'etc'</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'python'</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">))</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">
</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(138,74,11)">import</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> grass</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">.</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">script </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(138,74,11)">as</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> g
</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(138,74,11)">import</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> grass</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">.</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">script</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">.</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">setup </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(138,74,11)">as</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> gsetup
gisbase </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> os</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">.</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">environ</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">[</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'GISBASE'</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">]</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">
gisdb </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'C:\Users\Heinz\Documents\grassdata'</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">
location </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'newLocation'</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">
mapset </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'TC'</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">
gsetup</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">.</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">init</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">(</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">gisbase</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> gisdb</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> location</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> mapset</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">)</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">

</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(134,134,134)">#run r.watershed module</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">
</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(134,134,134)">#set thresh = 5000</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">
g</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">.</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">run_command</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">(</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'r.watershed'</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> elevation </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'hc'</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> threshold </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(149,56,56)">5000</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> accumulation </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'acc1'</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> drainge </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'dra1'</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> basin </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'bas1'</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> stream </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'str1'</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> half </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'hbas1'</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> visual </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'vis1'</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">)</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">
</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(138,74,11)">print</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> g</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">.</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)">read_command</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">(</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'g.list'</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">,</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> _type </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">=</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(0,0,0)"> </span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(128,0,0)">'rast'</span><span style="margin:0px;padding:0px;border:0px;vertical-align:baseline;color:rgb(20,86,128)">)</span></code></pre>


</div><div style="font-size:large"><font face="tahoma, sans-serif">the output has generate no new raster data, and if I change the input parameter 'half', an error will occur.</font></div><div style="font-size:large">


<span style="font-family:tahoma,sans-serif;background-color:rgba(248,248,248,0.6);color:rgb(68,68,68);line-height:17px">Can't GRASS just take the position of parameters, no matter what their name is, to execute the module?</span><br>


</div><div style="font-size:large"><span style="font-family:tahoma,sans-serif;background-color:rgba(248,248,248,0.6);color:rgb(68,68,68);line-height:17px"><br></span></div><div><font color="#444444" face="tahoma, sans-serif" style="font-size:large"><span style="line-height:17px;background-color:rgba(248,248,248,0.6)">For more detail, please visit <a href="http://gis.stackexchange.com/questions/90784/why-my-python-script-of-r-watershed-has-no-output" target="_blank">Why my python script of r.watershed has no output?</a></span></font><font color="#444444" face="tahoma, sans-serif" size="4"><span style="line-height:17px">, thank you.</span></font></div>


</div></div>
<br>_______________________________________________<br>
grass-user mailing list<br>
<a href="mailto:grass-user@lists.osgeo.org">grass-user@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-user" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-user</a><br></blockquote></div><br></div>