raster_tools.split_bands#
- raster_tools.split_bands(raster)[source]#
Split a multi-band raster into a list of single-band rasters.
The inverse of
stack_bands()for a single input. The returned rasters preserve the source CRS, grid, dtype, and per-band null mask. The list has lengthraster.nbandsand bands appear in their original order. Each output raster has its band coordinate reset to 1.- Parameters
raster (raster_tools.Raster) – The raster to split. A single-band input returns a one-element list.
- Return type
list of raster_tools.Raster
See also
stack_bandsInverse operation.