<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div>Hi, </div><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"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div class="gmail-h5"><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"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span>On Sun, Sep 25, 2016 at 5:40 PM, Sören Gebbert <span dir="ltr"><<a href="mailto:soerengebbert@googlemail.com" target="_blank">soerengebbert@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span><div><div>>r.mapclac --raster-region= --north= --south= --west= --east= --res=<br>
>--ewres= --nsres= --vect-region --raster-align= ...<br></div></div></span></blockquote></blockquote><div><br></div></span><div>I like this in the sense that if the region setting for the module is something which should be managed by these extra options, then they should be managed in parser, rather than introduced one by one for individual modules.<br><br>But how is this different from using GRASS_REGION? Convenience of <span>--raster-region=? Better syntax than environmental variable?</span></div></div></div></div></blockquote><div><br></div></div></div><div>From my understanding, the GRASS_REGION environmental variable is supported by G_get_window() [1]. However, most raster modules uses  Rast_window_rows() and Rast_window_cols() to get the current computational region rows and cols. Hence, setting GRASS_REGION will not affect most of the raster modules.</div></div></div></div></blockquote><div><br></div><div>While inspecting the raster and libgis code i realized that the code that initializes the input and output raster window eventually calls G_get_window(). Hence, the GRASS_REGION environmental variable will have an effect on  Rast_window_rows() and Rast_window_cols(). However, the correct use of GRASS_REGION is still unclear to me.</div></div><br></div></div>