These are convience wrappers for gt_RasterLayer objects.

# S4 method for gt_RasterLayer
crs(x)

# S4 method for gt_RasterLayer
ncell(x)

# S4 method for gt_RasterLayer
values(x)

# S4 method for gt_RasterLayer
res(x)

# S4 method for gt_RasterLayer
extent(x)

# S4 method for gt_RasterLayer
ncol(x)

# S4 method for gt_RasterLayer
nrow(x)

# S4 method for gt_RasterLayer
as.matrix(x)

# S4 method for gt_RasterLayer
as.raster(x)

Arguments

x
gt_RasterLayer object.

See also

gt_RasterLayer

Examples

## Not run: ------------------------------------ # g <- gt_raster(raster::raster(matrix(runif(9), ncol=3), # crs=sp::CRS('+init=epsg:4326'), # xmn=0, xmx=3, ymn=2, ymx=10)) # ncell(g) # number of cells # ncol(g) # number of columns # nrow(g) # number of rows # nrow(g) # number of rows # crs(g) # coordinate reference system # res(g) # cell resolution # extent(g) # spatial extent # as.matrix(g) # coerce data to matrix object # as.raster(g) # coerce data to matrix object ## ---------------------------------------------