
Collapse a dataset's bands into a single stacked raster.
stack_bands.RdThe dataset -> array operation (xarray's Dataset.to_dataarray()): stacks
the bands along a new band axis. Needs one layer per band, so reduce time
first (reduce_over(ds, "median", "t")). This is the hook for a multiband
reducer that must see all bands jointly (e.g. geometric median); collect()
calls it implicitly.