Experimental

Performs a MAX operation on two rasters or a raster and a constant value.

raster math max legacy-port

Parameters

NameDescriptionRequiredDefault
input1First raster path or numeric constant.Requiredin1.tif
input2Second raster path or numeric constant.Requiredin2.tif
outputOptional output raster path.Optional

Examples

Compute cellwise maximum between a raster and a constant.

wbe.max(input1='in1.tif', input2='15.0', output='max_output.tif')

Project Links

WbW Homepage User Manual Learn More