Skip to contents

All layers must share the spatial grid (align() first otherwise); dtypes promote to a common type. Chunks carry the stack as (t, y, x) arrays; temporal reductions (reduce_over(x, "median", "t")) then run chunk-locally.

Usage

lazy_stack(xs, along = "t")

Arguments

xs

List of LazyRasters on one grid.

along

Name of the new dim ("t" or "band").

Value

A LazyRaster with an extra dim.

Details

Element names of xs become labels on the new axis (slice dates on t, band names on band), used by time_sel() / band_sel() for label selection; an unnamed list leaves the axis unlabelled.