world2raster: Convert a worldMatrix or worldArray object into a Raster* object
Description
Convert a worldMatrix object into a RasterLayer object or a
worldArray object into a RasterStack object
Usage
world2raster(world)
# S4 method for worldMatrix
world2raster(world)
# S4 method for worldArray
world2raster(world)
Value
RasterLayer or RasterStack object depending on the input world.
Patches value are retained from the world.
Arguments
world
WorldMatrix or worldArray object.
Author
Sarah Bauduin
Details
The Raster* returned has the same extent and resolution as the world
with round coordinates at the center of the cells and coordinates x.5
at the edges of the cells.