A function that returns sections delimited by local maxima with height > hmin.

get_sections(sr, hmin, hmax)

Arguments

sr

tibble with columns l and z describing first 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

Value

hmin

Examples

data(s1) get_sections(s1, hmin=1,hmax=5)
#> # A tibble: 3 x 9 #> id_c i_a i_b l_a l_b z_a z_b z_min z_max #> <int> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> #> 1 1 1 20 10.1 122. 228. 225. 218. 228. #> 2 2 31 40 169. 200. 226. 224. 222. 226. #> 3 3 51 60 231. 256. 224. 226. 222. 226.