fld.dur {VulnToolkit}R Documentation

Flooding duration

Description

Calculates the percent of time an elevation is submerged

Usage

fld.dur(z, level)

Arguments

z

elevation of interest

level

a numeric vector of water levels. Time interval between measurements must be uniform.

Details

Calculates the percent of time an elevation is submerged

Value

value the decimal fraction of measurements in level that fall above z

See Also

fld.frq

Examples

data(NL_6min_2013)
a <- fld.dur(0.9117, NL_6min_2013[,2]); a # flooding duration at MHW
a * length(NL_6min_2013[,2]) / 10 # convert to hours per year

b <- fld.dur(0, NL_6min_2013[,2]); b # flooding duration at MLLW
b * length(NL_6min_2013[,2]) / 10 # hours per year

elev.dur <- data.frame(elev = seq(from = -0.5, to = 1.25, by = 0.005))
elev.dur$dur <- fld.dur(elev.dur$elev, NL_6min_2013[,2]) * length(NL_6min_2013[,2]) / 10 

plot(elev.dur$dur ~ elev.dur$elev, pch = 19, 
ylab = "flooding duration (hours per year)", xlab = "elevation (m; MLLW)")

[Package VulnToolkit version 1.1.4 Index]