[GRASS-user] Raster Map subset

Markus Neteler neteler at osgeo.org
Sat Feb 6 15:33:17 EST 2010


On Sat, Feb 6, 2010 at 1:16 AM, stephen sefick <ssefick at gmail.com> wrote:
> Is there a way to get a subset of a larger raster map.  I have zoomed
> into an area and would like to make a raster map only containing that
> area.  Can I do this?

It is as simple as this:

d.zoom || g.region
g.region -p
r.mapcalc subset=original

> I am going to use this as input into R for some topmodel runs.

I added the 'g.region -p' to check if the resolution is
messed up (personally, I dislike fractions of a pixel).

hope this helps,
Markus


More information about the grass-user mailing list