[GRASSLIST:8990] r.mask

Hi!

Where did r.mask go? Hos do I set a raster map to be a mask of another?

--Wolf

--

<:3 )---- Wolf Bergenheim ----( 8:>

Where did r.mask go? Hos do I set a raster map to be a mask of another?

It was unnecessary, just name the map "MASK".

g.copy yourmask,MASK
  or
r.mapcalc MASK=yourmask

and g.remove it when done.

Hamish

Hamish wrote:

> Where did r.mask go? Hos do I set a raster map to be a mask of another?

It was unnecessary, just name the map "MASK".

g.copy yourmask,MASK
  or
r.mapcalc MASK=yourmask

Note that the original r.mask created a reclass map, which uses
substantially less disk space as it doesn't copy the raster data.

--
Glynn Clements <glynn@gclements.plus.com>

> > Where did r.mask go? Hos do I set a raster map to be a mask of
> > another?
>
> It was unnecessary, just name the map "MASK".
>
> g.copy yourmask,MASK
> or
> r.mapcalc MASK=yourmask

Note that the original r.mask created a reclass map, which uses
substantially less disk space as it doesn't copy the raster data.

Interesting, I did not know that.

Hamish