[GRASS-user] Extract a smaller image (sample) from a raster map

Hamish hamish_b at yahoo.com
Sun Jun 30 18:11:41 PDT 2013


Nikos wrote:

> 2. set the computational region using g.region, e.g.
>   - "g.region rast=YourRastMap" will set the computational region to 
>      match the extent of your raster map (which is _not_ what you are
>      after, if I got it right)
>   - "g.region w= e= s= n=" to set a custom defined computational region

just a little side note, at this point in the process it is always
good to check the computational region result with 'g.region -p',
if the bounds and or resolution got messy you can fix it with the
'g.region align=original_map' command, or 'g.region -a res=...' at
the chosen resolution.

also, if you changed anything with r.region it is probably best to
delete the first attempt and re-import the map from the raw file.


Hamish



More information about the grass-user mailing list