Skip to main content
Add a band to a raster from an array of doubles.

Signatures

Parameters

Raster
required
The input raster.
ARRAY[Double]
required
The band index.
Integer
The band index value.
Double
The NoData value to use for pixels outside the raster extent.

Return type

The resulting raster.
RS_AddBandFromArray typecasts the double band values to the given datatype of the raster. This can lead to overflow values if values beyond the range of the raster’s datatype are provided.

Example