Array class for easier navigation of multilayer rasters
Arguments
- stack
A
SpatRaster
object.- index
A
vector
,matrix
orarray
type object. Includes either the indices of layers in the stack, or their names.- dim
A
numeric
vector. Same as forarray
, createsproxy
procedurally.
Details
The class implements structures to organize single-layer 'SpatRaster
'-class objects that have the same dimensions and coordinate reference system. Subsetting rules were defined using the proxy object in the @index
slot. See examples for implementations.
The class has two slots:
@stack
: A 'SpatRaster
'-class object with multiple layers, the actual data.
index
: A proxy object that represents the organization of the layer in the array.