Skip to main content
Returns summary stats struct consisting of count, sum, mean, stddev, min, max for a given band in raster. If band is not specified then it defaults to 1.
If excludeNoDataValue is set true then it will only count pixels with value not equal to the nodata value of the raster. Set excludeNoDataValue to false to get count of all pixels in raster.
If the mentioned band index doesn’t exist, this will throw an IllegalArgumentException.

Signatures

Parameters

Raster
required
The input raster.
Integer
default:"1"
The band index.
Boolean
default:"true"
Whether to exclude NoData pixels from the calculation.

Return type

A struct containing the result fields.

Examples