PRO Experimental

Reduces canopy residual roughness by masking high local DEV responses at small scales and re-interpolating masked elevations.

geomorphometry lidar smoothing dem legacy-port

## Parameters

Name | Description | Required | Default
--- | --- | --- | ---
`input` | Input DEM raster path or typed raster object. | Required | `dem.tif`
`max_scale` | Maximum DEV half-window radius in cells (default 30). | Optional | `30`
`dev_threshold` | Minimum DEV magnitude used to flag roughness cells (default 1.0). | Optional | `1.0`
`scale_threshold` | Maximum scale considered roughness (default 5). | Optional | `5`
`output` | Optional output path. If omitted, result stays in memory. | Optional | —

## Examples

Suppress vegetation-residual roughness in a LiDAR DEM.

    wbe.smooth_vegetation_residual(dev_threshold=1.0, input='dem.tif', max_scale=30, output='smooth_vegetation_residual.tif', scale_threshold=5)

## Project Links

WbW Homepage User Manual Support WbW