CompositeBand

Zusammenfassung

Creates a raster object by combining multiple rasters to form a multiband image.

Auswertung

For more information about how this function works, see the Composite Bands raster function.

The referenced raster dataset for the raster object is temporary. To make it permanent, you can call the raster object's save method.

Syntax

CompositeBand (raster)
ParameterErklärungDatentyp
raster
[raster,...]

The input raster or list of rasters.

Raster
Rückgabewert
DatentypErklärung
Raster

The output multiband raster.

Codebeispiel

CompositeBand example

Combines a list of single-band rasters into a multiband raster.

import arcpy

compband_raster = arcpy.sa.CompositeBand(["Band1.TIF", "Band2.TIF", "Band3.TIF"])