Aller au contenu principal

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

ParameterDescriptionNotes
Input multiband raster fileThe multiband raster from which a band will be extracted.Can be a single-band or multiband raster.
Band selectionThe index of the band to extract, counted from 1.If not set, the 1st band is extracted by default.
Output fileSpecifies 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

  1. Open the Geoprocessing Toolbox, go to Raster Tools > Raster Data > Raster Processing, and open the Extract Raster Band tool pane.
  2. Set Input multiband raster file.
  3. In Band selection, enter the band index to extract, counted from 1.
  4. Set Output single-band raster file.
  5. 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.