The BandwiseExpression operator performs a pixel-wise mathematical expression on each band of a raster source. For more details on the expression syntax, see the Expression operator. Note, that in the BandwiseExpression operator, it is only possible to map one pixel value to another and not reference any other pixels or bands. The variable name for the pixel value is x.
BandwiseExpression
x
expression
Expression
ln(1/x)
outputType
RasterDataType
U8
mapNoData
bool
false
The Expression operator expects a single raster input .
source
SingleRasterSource
The parsing of the expression can fail if there are, e.g., syntax errors.
{ "type": "BandwiseExpression", "params": { "expression": "ln(1/x)", "outputType": "F32", "mapNoData": false }, "sources": { "raster": { "type": "RasterStacker", "params": {}, "sources": { "rasters": [ { "type": "GdalSource", "params": { "data": "sentinel2-b8" } }, { "type": "GdalSource", "params": { "data": "sentinel2-b4" } } ] } } } }