Cut a Basin Merge Tree at a Scalar-Field Height
Source:R/basin_merge_tree_public.R
cut.basin.merge.tree.RdComputes connected components of the exact graph superlevel set
field >= height for maximum trees, or sublevel set field <= height for
minimum trees. Equality is included, so a saddle plateau has already joined
its incident components at its exact scalar-field level. Every returned
component is labeled by the elder basin that survives at the cut.
Usage
# S3 method for class 'basin.merge.tree'
cut(x, height, direction = "max", component = NULL, ...)