vrt.stack()
Stack the bands of sources on one grid as successive bands.
Usage
vrt.stack(
sources,
*,
bands=None,
band_names=None,
color_interp=None,
)Parameters
sources: Sequence[str | Path | UPath | VRT]-
Rasters or VRTs on an identical grid. A VRT is nested.
bands: Sequence[Sequence[int] | None] | None = None-
1-based bands to take from each source;
Nonefor an entry, or for the argument, takes all bands. band_names: Sequence[str] | None = None-
Description of each output band, replacing the source’s.
color_interp: Sequence[ColorInterp] | None = None- Colour interpretation of each output band, replacing the source’s.
Returns
VRT- A VRT with one band per selected source band.