Skip to main content
Returns count of a particular value from a spectral band in a raster image

Signatures

RS_CountValue (Band1: ARRAY[Double], Target: Double)

Parameters

Band1
ARRAY[Double]
required
The first spectral band.
Target
Double
required
The target value.

Return type

An integer value.

Example

val countDF = spark.sql("select RS_CountValue(band1, target) as count from dataframe")