Skip to main content
Extract a band from a raster as an array of doubles.

Signatures

Parameters

raster
Raster
required
The input raster.
bandIndex
Integer
required
The 1-indexed band to extract.

Return type

An array of double values representing the pixel values of the specified band.

Example