get_main_channel: Get Main Channel

Description Usage Arguments Details Examples

Description

Uses the transect to get the main channel from a transect potentially covering multiple channels. Also provides other useful info, like width to banks.

Usage

1
get_main_channel(transect, return_all = FALSE)

Arguments

transect

depth values along a transect

return_all

use it to return the indices of transects where the main channel begins and ends

Details

This function is not perfect! Sometimes the widest channel may not be the main channel. Can we discriminate based on how deep the channel is? With the current method, there is going to be some error associated with misclassification of the main channel. plot(transect[wide.ch.ind], main = "2", type= "l") plot(transect[wide.ch.ind1], main = "1", type= "l") summary(transect[wide.ch.ind]) summary(transect[wide.ch.ind1])

Examples

1
get_main_channel(transect)

jschap1/WSEw documentation built on May 12, 2019, 10:50 a.m.