RasterArray-class: Virtual Array of RasterLayers

Description Arguments Details Value Examples

Description

Array template for RasterLayers

Arguments

stack

A RasterStack class object.

index

A vector, matrix or array type object. Includes either the indices of layers in the stack, or their names.

dim

A numeric vector. Same as for array, creates proxy procedurally.

Details

The class implements structures to organize RasterLayers that have the same dimensions. Subsetting rules were defined using the proxy object in the index slot. See examples for implementations.

The class has two slots: stack: RasterStack, the actual data. index: A proxy object that represents the organization of the layers.

Value

A RasterArray class object.

Examples

1
2
3
4
5
6
7
# data import
  data(dems)
  st <-dems@stack
  ind <- 1:nlayers(st)
  names(ind) <- letters[1:length(ind)]
  ra<- RasterArray(stack=st, index=ind)
  

chronosphere documentation built on April 19, 2021, 1:07 a.m.