Function returns number of weeks of floodplain inundation given a flow for a watershed

get_weeks_flooded(ws, flow_cfs)

Arguments

ws

name of CVPIA watershed

flow_cfs

monthly mean flow in cubic feet per second

Value

integer value for number of weeks

Details

These relationships between number of days inundated and the mean monthly flow are stored in weeks_inundated and referenced by this function. For watersheds without a defined relationship, a two week inundation duration is assumed.

Examples

get_weeks_flooded('Yuba River', 900)
#> [1] 4