temporal_rao: Computation of Rao's index on each raster stack pixel accross...

Description Usage Arguments Value

Description

Temporal Rao's index is calculated through the spacetimerao::get_rao_index on the values each pixel of the raster stack has accross the stack layers.

Computation can be parallelized if a cluster object is passed to cl_sock argument. The function uses the parallel package, the set of copies of R running in has to be already in place.

Usage

1
temporal_rao(raster_stack, cl_sock = NULL, is_rao)

Arguments

raster_stack

the multi-layer raster stack

cl_sock

a c("SOCKcluster", "cluster") object as given by parallel::makeCluster or NULL (default) to perform serial computation

is_rao

boolean to get Rao's index back (default) or Shannon's index

Value

a single layer raster with same extent as the raster_stack raster stack


mbask/spacetimerao documentation built on May 17, 2019, 11:08 a.m.