Raster*
object into a worldMatrix
or worldArray
objectR/world-functions.R
raster2world.Rd
Convert a RasterLayer
object into a worldMatrix
object or a RasterStack
object
into a worldArray
object.
raster2world(raster)
# S4 method for RasterLayer
raster2world(raster)
# S4 method for RasterStack
raster2world(raster)
RasterLayer
or RasterStack
object.
WorldMatrix
or worldArray
object depending on the input raster
.
Patches
value are retained from the raster
.
See help("worldMatrix-class")
or help("worldArray-class")
for more details on the classes.
`raster`
The number of rows and columns, as well as the cell values of the
are kept the same. However, to match the coordinates system and resolution of a`worldMatrix` or `worldArray`, the grid is shifted by a 1/2 cell to have
to (1,1).
round coordinate values at the center of the patches and patch size is equal `worldMatrix` or `worldArray`
The bottom left corner cell coordinates of the be (pxcor = 0, pycor = 0). will