A function that returns sections and channels

get_channels(sr, hmin, hmax, type = "bankfull")

Arguments

sr

tibble with columns l and z describing profile

hmin

the minimum height (relative to local minimum of z) of levees-defining local maxima

hmax

the maximum height (relative to minimum of z) of a channel-defining local minima

type

whether to return section or bankfull channel ("section" or "bankfull"). Defaults to "bankfull"

Value

channels a tibble with sections and channels descriptors

Examples

data(s1) channels=get_channels(s1, hmin=1, hmax=5.5)