Message-ID: <9B597DE5AF080D418509A7E9F1E93EAF02079096@Exch2010MB-3.univ.dir.wwu.edu>
Date: 2011-05-26T19:52:11Z
From: Andy Bunn
Subject: coarsening a grid
In-Reply-To: <alpine.LRH.2.00.1105242301300.24563@reclus.nhh.no>
> -----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