[GRASS5] lamer question

Glynn Clements glynn at gclements.plus.com
Fri Dec 30 07:32:07 EST 2005


RK wrote:

> However, I'm just not able to figure out how to cut a raster image
> (subset, crop).
> I have a huge DTM and I woud like to get a portion of it.
> I need to cut it by co-ordinates. I know that it should be simple
> but I'm afraid I still doesn't have the "GRASS mind" enough which
> may be needed. :)

Use g.region to select the appropriate portion of the map, then use
r.resample to copy it to a new map.

Almost all GRASS raster commands automatically crop and resample the
map according to the current region settings, so you seldom need to
actually create a separate cropped copy.

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




More information about the grass-dev mailing list