Extract raster from DBBMM

Share:

Description

Extracts the RasterLayer from a DBBMM and DBBMMStack object.

Usage

1
2
3
4
  ## S4 method for signature 'DBBMM'
raster(x)
  ## S4 method for signature 'DBBMMStack'
raster(x)

Arguments

x

a DBBMM or DBBMMStack object

Details

The raster function extracts the raster object from a DBBMM or DBBMMStack object.

Value

An object from class RasterLayer is returned.

Author(s)

Marco Smolla

Examples

1
2
3
4
5
data(leroydbbmm)
data(dbbmmstack)
raster(leroydbbmm) #returns the raster of a DBBMM object
raster(dbbmmstack) # returns the raster of a DBBMMStack object
plot(raster2contour(leroydbbmm, levels=c(.5,.9)), col=c(5,4)) # plot the raster lines of a DBBMM

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.