[GRASS-user] quick way to create a mask and region after zooming in?

hi all,

i want to zoom into a region of interest and have that be the extent of a mask and a named region.(no single map layer quite covers the region of interest)

isn’t there a a command or flag with g.region or r.mask to do this? if not i’m looking at having to digitize a polygon after zooming in, or manually jotting down the corners of the display window and piping it to g.region.

thanks,
Vishal


Vishal K. Mehta, PhD
Scientist
Stockholm Environment Institute - US
133 D St Suite F
Davis CA 95616
www.sei-us.org

Hi,

···

On Wed, Jul 2, 2014 at 7:11 PM, Vishal Mehta <vishalm1975@gmail.com> wrote:

hi all,

i want to zoom into a region of interest and have that be the extent of a mask and a named region.(no single map layer quite covers the region of interest)

isn’t there a a command or flag with g.region or r.mask to do this? if not i’m looking at having to digitize a polygon after zooming in, or manually jotting down the corners of the display window and piping it to g.region.

In Map Display toolbar, there is tool ‘Various zoom options’ → ‘Set computational region interactively’. Is that what you are looking for? It is relatively new feature, so you have to use at least GRASS 7 beta2, I think.

Anna

thanks,
Vishal


Vishal K. Mehta, PhD
Scientist
Stockholm Environment Institute - US
133 D St Suite F
Davis CA 95616
www.sei-us.org


grass-user mailing list
grass-user@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-user

On 03/07/14 01:11, Vishal Mehta wrote:

hi all,

i want to zoom into a region of interest and have that be the extent of
a mask and a named region.(no single map layer quite covers the region
of interest)

isn't there a a command or flag with g.region or r.mask to do this? if
not i'm looking at having to digitize a polygon after zooming in, or
manually jotting down the corners of the display window and piping it to
g.region.

In addition to all the other responses: if you really _do_ want to create a mask, you can use v.in.region to create a polygon of the region and then feed that directly into r.mask (grass7) or transform it to raster and then feed that to r.mask (grass6).

Moritz