<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Nov 21, 2013 at 5:09 PM, Markus Neteler <span dir="ltr"><<a href="mailto:neteler@osgeo.org" target="_blank">neteler@osgeo.org</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On the contrary: r.lake offers two overwrite flags :p</blockquote>

</div><div class="gmail_extra"><br></div><div class="gmail_extra">r.lake has:</div><br>-o   Overwrite seed map with result (lake) map<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">which is distinct from</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">--o   Allow output files to overwrite existing files<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">I think that -o just overwrites input seed map by result. While --o specifies that existing map specified by `lake` can be overwritten. However, -o should be accepted only when --o is provided (not tested). Moreover, it seems that -o and --o are confusing.</div>

<div class="gmail_extra"><br></div><div class="gmail_extra">I actually wanted to change r.lake parameters and flags to be more standard.</div><div class="gmail_extra"><br></div><div class="gmail_extra">xy -> <span style="color:rgb(0,0,0);white-space:pre-wrap">G_OPT_M_COORDS</span></div>

<div class="gmail_extra"><span style="color:rgb(0,0,0);white-space:pre-wrap">wl -> </span><span style="color:rgb(0,0,0);white-space:pre-wrap">water_level</span></div><div class="gmail_extra"><span style="color:rgb(0,0,0);white-space:pre-wrap">lake -> output?</span></div>

<div class="gmail_extra"><span style="color:rgb(0,0,0);white-space:pre-wrap">elevation -> input?</span></div><div class="gmail_extra"><span style="color:rgb(0,0,0);white-space:pre-wrap">-o -> ?</span></div><div class="gmail_extra">

<span style="color:rgb(0,0,0);white-space:pre-wrap"><br></span></div><div class="gmail_extra"><font color="#000000"><span style="white-space:pre-wrap">But I stopped at -o because it might need some larger changes. lake/output option is not required because of the possibility of overwriting seed raster input map. Interesting option, but it creates confusion. It is needed? Maybe.</span></font></div>

<div class="gmail_extra"><font color="#000000"><span style="white-space:pre-wrap"><br></span></font></div><div class="gmail_extra"><a href="http://grass.osgeo.org/grass70/manuals/r.lake.html">http://grass.osgeo.org/grass70/manuals/r.lake.html</a><font color="#000000"><span style="white-space:pre-wrap"><br>

</span></font></div><div class="gmail_extra"><a href="https://svn.osgeo.org/grass/grass-addons/grass7/raster/r.lake.series/r.lake.series.py">https://svn.osgeo.org/grass/grass-addons/grass7/raster/r.lake.series/r.lake.series.py</a><font color="#000000"><span style="white-space:pre-wrap"><br>

</span></font></div></div>