raster: Extract raster topology from DBBMM or dynBGB
Description
Extracts the RasterLayer topology from a DBBMM, DBBMMStack and dynBGB object.
Usage
# S4 method for DBBMM
raster(x)
# S4 method for DBBMMStack
raster(x)
Arguments
x
a DBBMM, DBBMMStack or dynBGB object
Value
An object from class RasterLayer is returned.
Details
This function extracts the raster topology (i.e. without values) of the input object. DBBMM, DBBMMStack and dynBGB objects can be directly used in most raster functions but in case a raster with values needs to be extracted as(x,'RasterLayer') can be used.
# NOT RUN {data(leroydbbmm)
data(dbbmmstack)
raster(leroydbbmm) #returns the raster topology of a DBBMM objectraster(dbbmmstack) # returns the raster topology of a DBBMMStack object# }