Skip to contents

Generates a raster stack.

Usage

generate_stack(
  layers,
  layer_size = NULL,
  dimension = NULL,
  multi_layer_file = FALSE
)

Arguments

layers

(List of numeric_layer() and factor_layer())
List of layers.

layer_size

(numeric(1))
Size of a single layer in megabytes.

dimension

(integer(1))
Dimension of the squared layers.

multi_layer_file

(logical(1))
If TRUE, raster is written to disk as a single multi-layer file. Overwrites ìn_memory argument of numeric_layer() and factor_layer().

layer_size and dimension are mutually exclusive.