[GRASS-user] Changing raster boundaries

Nikos Alexandris nikos.alexandris at felis.uni-freiburg.de
Fri Oct 15 04:50:12 EDT 2010


Christian:

> >>> how to change the boundaries of a raster map (simply expand the
> >>> border) without any automatic modification of map resolution as it
> >>> will happen when using "r.region map=.. n= ..s=.. w= e=.." ?
> >>> Thanks for some hint.

Micha:

> >> How about changing the current region with g.region, then use r.mapcalc
> >> to create a copy of the original at the new extents?

On 10/15/2010 12:20 AM, Nikos Alexandris wrote: 

> > A reminder that "r.region" might be useful as well in this case.

Micha: 

> Yes, but the OP asked not to use r.region since it changes also the
> resolution. It recalculates the res so as to keep the same number of
> rows and columns.

Correct. My bad.

Thought the "r.region map=mymap n=n+100 e=e+100 w=w+100 s=s+100" will get the 
job done and avoid (carefully) using g.region + r.mapcalc.

Regards, Nikos


More information about the grass-user mailing list