<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 27, 2016 at 5:01 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:1px solid rgb(204,204,204);padding-left:1ex"><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></blockquote><div><br>This 
would be a buggy behavior but I think it is not the case. All 2D raster 
window functions use Rast__init_window() [2] which calls G__init_window() [3] 
which uses G_get_window() [4]. I'm not sure about 3D rasters but I think WIND_OVERRIDE worked for me. Display modules seems to accept GRASS_REGION because that's actually how it is used in code. Vector modules probably just use the G_ function.<br><br></div><div>Vaclav<br></div><div><br>[2] <a href="https://trac.osgeo.org/grass/browser/grass/trunk/lib/raster/window.c?rev=69586">https://trac.osgeo.org/grass/browser/grass/trunk/lib/raster/window.c?rev=69586</a><br>[3] <a href="https://trac.osgeo.org/grass/browser/grass/trunk/lib/raster/set_window.c?rev=69586#L24">https://trac.osgeo.org/grass/browser/grass/trunk/lib/raster/set_window.c?rev=69586#L24</a><br>[4] <a href="https://trac.osgeo.org/grass/browser/grass/trunk/lib/gis/set_window.c?rev=69586#L70">https://trac.osgeo.org/grass/browser/grass/trunk/lib/gis/set_window.c?rev=69586#L70</a><br><br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><br></div><div>Best regards</div><div>Soeren</div><div><br></div><div>[1] <a href="https://trac.osgeo.org/grass/browser/grass/trunk/lib/gis/get_window.c?rev=69586#L30" target="_blank">https://trac.osgeo.org/<wbr>grass/browser/grass/trunk/lib/<wbr>gis/get_window.c?rev=69586#L30</a></div></blockquote></div><br><br></div></div>