Skip to content
Prev 8693 / 29559 Next

spTransform changes the class

The general idea is that for changing the projection of a raster you
provide the input RasterLayer and a Raster object with the spatial
parameters (projection, extent, resolution) to which it should be
transformed. For the latter, you can use the RasterLayer that you want
to project the input data to (I call it 'x').

prjgrd <- projectRaster(eugrd025, x, method='bilinear')

Note that it should *not* be necessary to resample after projection
because projecting a raster already implies resampling.

Robert
On Thu, Jul 1, 2010 at 8:48 AM, Michael Sumner <mdsumner at gmail.com> wrote: