geopyspark.geotrellis.combine_bands module¶
-
geopyspark.geotrellis.combine_bands.combine_bands(layers)¶ Combines the bands of values that share the same key in two or more
TiledRasterLayers.This method will concat the bands of two or more values with the same key. For example,
layer ahas values that have 2 bands andlayer bhas values with 1 band. Whencombine_bandsis used on both of these layers, then the resulting layer will have values with 3 bands, 2 fromlayer aand 1 fromlayer b.Note
All layers must have the same
layer_type. If the layers areTiledRasterLayers, then all of the layers must also have the sameTileLayoutandCRS.Parameters: layers ([ RasterLayer] or [TiledRasterLayer] or (RasterLayer) or (TiledRasterLayer)) –A colection of two or more
RasterLayers orTiledRasterLayers. The order of the layers determines the order in which the bands are concatenated. With the bands being ordered based on the position of their respective layer.For example, the first layer in
layersislayer awhich contains 2 bands and the second layer islayer bwhose values have 1 band. The resulting layer will have values with 3 bands: the first 2 are fromlayer aand the third fromlayer b. If the positions oflayer aandlayer bare reversed, then the resulting values’ first band will be fromlayer band the last 2 will be fromlayer a.Returns: RasterLayerorTiledRasterLayer