## Description

This tool can be used to prune the smallest branches of a vector stream network based on a threshold in link magnitude. The function automatically calculates the Shreve magnitude of each link in the input streams vector. This operation requires an input digital elevation model (DEM). The function is also capable of calculating the link magnitude from stream networks that have some minor topological errors (e.g., line overshoots or undershoots). This requires the input of a `snap_distance` parameter (default = 0.0).

## See Also

vector_stream_network_analysis, repair_stream_vector_topology

## Function Signature

`def prune_vector_streams(self, streams: Vector, dem: Raster, threshold: float, snap_distance: float = 0.001) -> Vector: ...`

## Project Links

WbW Homepage User Manual Support WbW