Experimental

Truncates each raster cell value to its integer part.

raster math truncate

Parameters

NameDescriptionRequiredDefault
inputInput raster file path.Requiredinput.tif
outputOptional output raster file path. If omitted, the result is stored in memory.Optionaloutput.tif

Examples

Apply truncate transform to each non-nodata cell.

wbe.truncate(input='dem.tif', output='truncate_dem.tif')

Project Links

WbW Homepage User Manual Learn More