[R-sig-Geo] coarsening a grid
Nick Matzke
matzke at berkeley.edu
Fri May 27 04:33:05 CEST 2011
Thanks to both! Even for plotting a large grid, these are good
options for speeding that up where the full resolution isn't needed...
On Thu, May 26, 2011 at 9:52 AM, Andy Bunn <Andy.Bunn at wwu.edu> wrote:
>> -----Original Message-----
>> From: r-sig-geo-bounces at r-project.org [mailto:r-sig-geo-bounces at r-
>> project.org] On Behalf Of Roger Bivand
>> Sent: Tuesday, May 24, 2011 2:03 PM
>> To: Nick Matzke
>> Cc: r-sig-geo at stat.math.ethz.ch
>> Subject: Re: [R-sig-Geo] coarsening a grid
>>
>> On Tue, 24 May 2011, Nick Matzke wrote:
>>
>> > Hi all,
>> >
>> > Maybe this is obvious but I can't seem to find anything on it.
>> >
>> > I have loaded and displayed a small DEM grid (6 MB) with readGDAL.
>> >
>> > Is there an easy way to coarsen it or downsample it?
>
> aggregate() in raster is useful/fast as well.
>
>
>>
>> You can downsample it when reading in, see the output.dim= argument to
>> readGDAL() and its use in the examples there.
>>
>> Roger
>>
>> >
>> > Cheers!
>> > Nick
>> >
>> >
>> >
>>
>> --
>> Roger Bivand
>> Economic Geography Section, Department of Economics, Norwegian School
>> of
>> Economics and Business Administration, Helleveien 30, N-5045 Bergen,
>> Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
>> e-mail: Roger.Bivand at nhh.no
>>
>> _______________________________________________
>> R-sig-Geo mailing list
>> R-sig-Geo at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>
>
More information about the R-sig-Geo
mailing list