[GRASS-user] Changing raster boundaries
Christian Schwartze
christian.schwartze at uni-jena.de
Fri Oct 15 05:55:46 EDT 2010
Thanks to all of you, the approach of Micha using g.region and r.mapcalc did
the job...!
Regards,
Christian.
--------------------------------------------------
From: "Nikos Alexandris" <nikos.alexandris at felis.uni-freiburg.de>
Sent: Friday, October 15, 2010 10:50 AM
To: <grass-user at lists.osgeo.org>
Cc: "Micha Silver" <micha at arava.co.il>; "Christian Schwartze"
<christian.schwartze at uni-jena.de>
Subject: Re: [GRASS-user] Changing raster boundaries
> 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