> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wherobots.com/llms.txt
> Use this file to discover all available pages before exploring further.

# RS_Mode

Returns Mode from a spectral band in a Geotiff image in form of an array

## Signatures

```sql theme={"system"}
RS_Mode (Band: ARRAY[Double])
```

## Parameters

<ParamField body="Band" type="ARRAY[Double]" required>
  The band index.
</ParamField>

## Return type

<ResponseField type="Array<Double>">
  An array of double values.
</ResponseField>

## Example

```scala theme={"system"}
val modeDF = spark.sql("select RS_Mode(band) as mode from dataframe")
```
