Learn R Programming

raster (version 1.7-6)

brick: Create a RasterBrick object

Description

A RasterBrick is a multi-layer raster object. They are typically created from a multi-band file; but they can also exist entirely in memory. They are similar to a RasterStack, but processing time should be shorter when using a RasterBrick. Yet they are less flexible as they can only point to a single file. A RasterBrick can be created from RasterLayer objects, from a RasterStack, or from a file. The can also be created from SpatialPixels and SpatialGrid objects.

Usage

brick(x, ...)

Arguments

x
Filename (character), Raster* object, SpatialGrid*, SpatialPixels*, or list of Raster* objects
...
Additional Raster* objects

Value

  • RasterBrick object

See Also

raster

Examples

Run this code
b <- brick(system.file("external/rlogo.grd", package="raster"))
b
nlayers(b)
layerNames(b)
extract(b, 870)

Run the code above in your browser using DataLab