> ## 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_MultiplyFactor

Multiply a factor to a spectral band in a geotiff image

## Signatures

```sql theme={"system"}
RS_MultiplyFactor (Band1: ARRAY[Double], Factor: Double)
```

## Parameters

<ParamField body="Band1" type="ARRAY[Double]" required>
  The first spectral band.
</ParamField>

<ParamField body="Factor" type="Double" required>
  The factor value.
</ParamField>

## Return type

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

## Example

```scala theme={"system"}
val multiplyFactorDF = spark.sql("select RS_MultiplyFactor(band1, 2) as multiplyfactor from dataframe")
```

This function only accepts integer as factor before `v1.5.0`.
