Skip to main content
Multiply a factor to a spectral band in a geotiff image

Signatures

RS_MultiplyFactor (Band1: ARRAY[Double], Factor: Double)

Parameters

Band1
ARRAY[Double]
required
The first spectral band.
Factor
Double
required
The factor value.

Return type

An array of double values.

Example

val multiplyFactorDF = spark.sql("select RS_MultiplyFactor(band1, 2) as multiplyfactor from dataframe")
This function only accepts integer as factor before v1.5.0.