Extract Raster Band
Purpose
Extract one band from a multiband raster by band index and output a single-band raster. This tool is commonly used to extract a band from multispectral imagery, split a single-band product from computation results, or prepare input for subsequent single-band analysis.
For more information about raster bands, see Introduction to raster data bands.
Parameters
| Parameter | Description | Notes |
|---|---|---|
| Input multiband raster file | The multiband raster from which a band will be extracted. | Can be a single-band or multiband raster. |
| Band selection | The index of the band to extract, counted from 1. | If not set, the 1st band is extracted by default. |
| Output file | Specifies the storage location, file name, data format, data type, and NoData value of the output raster data. | See Common raster output. |
Input and output:
- Input: A multiband raster, such as GeoTIFF.
- Output: A single-band raster. The output keeps the input raster's spatial reference, extent, and resolution.
Steps
- Open the Geoprocessing Toolbox, go to Raster Tools > Raster Data > Raster Processing, and open the Extract Raster Band tool pane.
- Set Input multiband raster file.
- In Band selection, enter the band index to extract, counted from 1.
- Set Output single-band raster file.
- Click Run to generate the result.
Notes
- Band indexes start from 1. An index greater than the number of bands will cause the tool to fail.
- The output is a single-band raster, but it still keeps the raster's spatial extent, resolution, and coordinate system information.
Example
- Extract the 4th band, such as near-infrared, from a four-band image: Band selection = 4.