Extract raster topology from DBBMM or dynBGB
raster.Rd
Extracts the RasterLayer topology from a DBBMM, DBBMMStack and dynBGB object.
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.
Examples
data(leroydbbmm)
data(dbbmmstack)
raster(leroydbbmm) #returns the raster topology of a DBBMM object
#> class : RasterLayer
#> dimensions : 42, 45, 1890 (nrow, ncol, ncell)
#> resolution : 759.9677, 759.9677 (x, y)
#> extent : -17098.3, 17100.24, -15958.9, 15959.75 (xmin, xmax, ymin, ymax)
#> crs : +proj=aeqd +lat_0=42.73884025 +lon_0=-73.8871629 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs
#>
raster(dbbmmstack) # returns the raster topology of a DBBMMStack object
#> class : RasterLayer
#> dimensions : 45, 21, 945 (nrow, ncol, ncell)
#> resolution : 617.1116, 617.1116 (x, y)
#> extent : -6478.702, 6480.641, -13884.56, 13885.46 (xmin, xmax, ymin, ymax)
#> crs : +proj=aeqd +lat_0=42.778423 +lon_0=-73.8871629 +x_0=0 +y_0=0 +datum=WGS84 +units=m +no_defs
#>