[R-sig-Geo] Alternative to zonal for large images

Forrest Stevens forrest at ufl.edu
Wed Feb 13 01:11:07 CET 2013


On Tue, Feb 12, 2013 at 6:30 PM, Oscar Perpiñán Lamigueiro
<oscar.perpinan at gmail.com> wrote:
> Hello,
>
> I think that the combination of the raster and data.table packages can
> be really useful. For example, here it is a very simplified version of
> zonal using the data.table methods. It provides the same results about
> 10 times faster.

That's very useful to know, thanks very much for sharing the code
Oscar.  Along a similar vein, has anyone tested the fastest way to
convert polygons to a raster object?  This also seems to be a
significant bottle-neck in the R raster toolchain and is usually the
first step for generating per-zone summary statistics in the
applications I work with.

Forrest



More information about the R-sig-Geo mailing list