Skip to main content
Returns Mode from a spectral band in a Geotiff image in form of an array

Signatures

RS_Mode (Band: ARRAY[Double])

Parameters

Band
ARRAY[Double]
required
The band index.

Return type

An array of double values.

Example

val modeDF = spark.sql("select RS_Mode(band) as mode from dataframe")