Skip to main content
Divide band1 with band2 from a geotiff image

Signatures

RS_Divide (Band1: ARRAY[Double], Band2: ARRAY[Double])

Parameters

Band1
ARRAY[Double]
required
The first spectral band.
Band2
ARRAY[Double]
required
The second spectral band.

Return type

An array of double values.

Example

val multiplyDF = spark.sql("select RS_Divide(band1, band2) as divideBands from dataframe")