<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 11, 2015 at 11:48 PM, Anna Petrášová <span dir="ltr"><<a href="mailto:kratochanna@gmail.com" target="_blank">kratochanna@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"><br><div class="gmail_extra"><br><div class="gmail_quote"><span class="">On Mon, May 11, 2015 at 5:01 PM, Paulo van Breugel <span dir="ltr"><<a href="mailto:p.vanbreugel@gmail.com" target="_blank">p.vanbreugel@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"><br><div class="gmail_extra"><br><div><span>On Mon, May 11, 2015 at 5:58 PM, Anna Petrášová <span dir="ltr"><<a href="mailto:kratochanna@gmail.com" target="_blank">kratochanna@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">Hi,<div><br></div><div>I just realized how g.region zoom actually works and I am wondering if it is supposed to be obvious. I always thought it will set the region to the raster map minimum bounding box, but it takes current region and only shrinks it. The behavior is written in the manual (I eventually realized), but it doesn't strike me as particularly useful.</div></div></blockquote><br></span>What for example if you want to restrict calculations to the region defined by the non-null values of a particular map that has a different resolution than the maps you are using in your calculations?<br></div></div></div></blockquote><div><br></div></span><div>I am not concerned with resolution but extent. I was mostly confused from the case when I have region smaller than the extent of the raster (from previous computation) and then I expected g.region zoom to set the region on the whole raster extent, but instead it shrinks even more if there are nulls or it stays the same. So the result of the g.region zoom depends on you previous region settings which was unexpected for me.</div></div></div></div></blockquote><div><br></div><div>Ah, never got that situation, but that would be unexpected to me too.<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div><br></div><div class="gmail_quote"><span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><br></div><div>At least I would suggest to change the g.region zoom behavior in the GUI -> right click on layer -> Set computational region from selected map (ignore NULLS) to:</div><div><br></div><div>g.region raster=map zoom=map</div></div></blockquote><div><br></div></span><div>That does indeed seems the more obvious / intuitive behaviour to me <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><div dir="ltr"><div><br></div></div></span></blockquote></div></div></div></blockquote><div><br></div></span><div>I will do that, thanks!</div><span class=""><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span><div dir="ltr"><div></div><div>instead of </div><div><br></div><div>g.region zoom=map<br></div><div><br></div><div>Any thoughts on that?</div><div><br></div><div>Thanks,</div><div><br></div><div>Anna</div><div><br></div></div>
<br></span>_______________________________________________<br>
grass-dev mailing list<br>
<a href="mailto:grass-dev@lists.osgeo.org" target="_blank">grass-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/grass-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/grass-dev</a><br></blockquote></div><br></div></div>
</blockquote></span></div><br></div></div>
</blockquote></div><br></div></div>