Composite Bands (Data Management) |
|
Release 9.2
Last modified November 29, 2010 |
![]() ![]() ![]() Print all topics in : "Tools" |
Creates a single raster dataset from multiple bands.
This tool is useful when you have many single-band rasters, covering the same spatial extent, and want to create a multiple-band raster dataset. Creating a multiple-band raster dataset allows you to display the bands together as an RGB composite. The order that the bands are listed in Multi-value Input control box will determine the order of the bands in the output raster dataset.
Illustration
Usage tips
The order that the bands are listed in Multi-value Input control box will determine the order of the bands in the output raster dataset.
You can save your output to BMP, GIF, GRID, IMG, JPEG, JPEG 2000, PNG, TIFF, or any geodatabase raster dataset.
When storing a raster dataset in a geodatabase, no file extension should be added to the name of the raster dataset. When storing the raster dataset in a file format, you need to specify the file extension: .bmp for BMP, .gif for GIF, .img for an ERDAS IMAGINE file, .jpg for JPEG, .jp2 for JPEG 2000, .png for PNG, .tif for TIFF, or no extension for GRID.
When storing your raster dataset to a geodatabase, you can specify a compression type and compression quality within the Raster Storage Settings in the Environment Settings dialog box.
The output raster dataset takes the cell size from the first raster band in the list.
By default, the output raster dataset takes the extent and the spatial reference of the first raster band with a spatial reference in the list. You can change this by setting Output Extent and Output Coordinate System in the Environment Settings.
The following are some examples of why you would want to combine single raster datasets into multiband raster datasets.
The following environments affect this tool: current workspace, scratch workspace, output coordinate system, output extent, output CONFIG keyword, pyramid, raster statistics, compression, and tile size.
Command line syntax
An overview of the Command Line window
CompositeBands_management <in_rasters;in_rasters...> <out_raster>
Parameter | Explanation | Data Type |
<in_rasters;in_rasters...> |
The input raster datasets. |
Composite Geodataset |
<out_raster> |
The output raster dataset. When storing the raster dataset in a file format, you need to specify the file extension: .bmp for BMP, .img for an ERDAS IMAGINE file, .jpg for JPEG, .jp2 for JPEG 2000, .png for PNG, .tif for TIFF, or no extension for GRID. When storing a raster dataset in a geodatabase, no file extension should be added to the name of the raster dataset. A raster dataset stored in a geodatabase can be compressed; you can specify a compression type and compression quality. |
Raster Dataset |
CompositeBands_management D:\Rasters\band1;D:\Rasters\band2;D:\Rasters\band3 D:\Rasters\Composite123.img
Scripting syntax
About getting started with writing geoprocessing scripts
CompositeBands_management (in_rasters, out_raster)
Parameter | Explanation | Data Type |
in_rasters (Required) |
The input raster datasets. |
Composite Geodataset |
out_raster (Required) |
The output raster dataset. When storing the raster dataset in a file format, you need to specify the file extension: .bmp for BMP, .img for an ERDAS IMAGINE file, .jpg for JPEG, .jp2 for JPEG 2000, .png for PNG, .tif for TIFF, or no extension for GRID. When storing a raster dataset in a geodatabase, no file extension should be added to the name of the raster dataset. A raster dataset stored in a geodatabase can be compressed; you can specify a compression type and compression quality. |
Raster Dataset |
# Create the geoprocessing object import arcgisscripting gp = arcgisscripting.create() gp.workspace = "c:/seattle_data" gp.CompositeBands_management("seattle1.tif;seattle2.img;seattle3.tif","seattle_composite.tif")