coarsening a grid
-----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