Re: [GRASS-user] cutting issue (again): r.mapcalc vs. r.resample

2010-01-25 Thread Rich Shepard
On Mon, 25 Jan 2010, Hamish wrote: the v.in.region and g.region vect= steps are redundant, but make sure when you zoom you update the computational region, not just the display one in the GUI (d.zoom + d.mon does this automatically) Hamish, Good to know. Thanks. I'm a CLI person so I use

Re: [GRASS-user] cutting issue (again): r.mapcalc vs. r.resample

2010-01-25 Thread Hamish
Rich wrote: >   The approach that worked for me was described by > Helmut Kudrnovsky: > >   1) zoom to your area of interest of your larger > region. > >   2) v.in.region e.g. "v.in.region output=testarea", > so the extent of your >   area of interest is defined by the vector > "testarea" > >  

Re: [GRASS-user] cutting issue (again): r.mapcalc vs. r.resample

2010-01-25 Thread Rich Shepard
On Mon, 25 Jan 2010, Tim Michelsen wrote: I while ago I asked how to cut a small map from a larger one using the region settings as boundary for the small map: http://n2.nabble.com/r-mapcalc-changes-color-table-td4072836.html#a4072836 I tried this again: Approach 1: r.mapcalc Approach 2: r.re

Re: [GRASS-user] cutting issue (again): r.mapcalc vs. r.resample

2010-01-25 Thread Achim Kisseler
And more: -%<-- ...The category values in the new raster output map layer will be the same as those in the original, except that the resolution and extent of the new raster output map layer will match those of the current geographic region settings (see g.region) -%<-- Achim Tim Michel

Re: [GRASS-user] cutting issue (again): r.mapcalc vs. r.resample

2010-01-25 Thread Achim Kisseler
Did you do: g.copy rast=boundary_raster,MASK or alternatively: r.mask input=boundary_raster -o (-o for overwrite) ? Tim Michelsen schrieb: Hello, I while ago I asked how to cut a small map from a larger one using the region settings as boundary for the small map: http://n2.nabble.com/r-mapca

[GRASS-user] cutting issue (again): r.mapcalc vs. r.resample

2010-01-25 Thread Tim Michelsen
Hello, I while ago I asked how to cut a small map from a larger one using the region settings as boundary for the small map: http://n2.nabble.com/r-mapcalc-changes-color-table-td4072836.html#a4072836 I tried this again: Approach 1: r.mapcalc r.mapcalc "cut=if(boundary_raster, lar