floodmean: Calculate Mean Days per Year with Flood Events From...

Description Usage Arguments Value See Also Examples

View source: R/floodmean.R

Description

This function takes high frequency data on tidal elevations (typically hourly or more frequently) and counts the number of days each year where the water level (.wl) exceeded a specified flood elevation (.fldlvl) at least once. It calculates the mean annual number of days with observed flooding, the daily probability of flooding, and a scaled estimate of days with flooding, scaled to account for days with no water level data.

Usage

1
floodmean(.data, .dt, .wl, .fldlvl)

Arguments

.data

A source data frame. can be NULL if .dt and .wl are defined in the enclosing environment.

.dt

Dates and times. A data column in .data or a data vector defined in the enclosing environment that contains date-time information. Must inherit from POSIXct.

.wl

Water level. A numerical data column in .data or a numerical vector defined in the enclosing environment.

.fldlvl

The water level that defines a flood event. Needs to be expressed in the same units and the same datum as the water level data.)

Value

A 3 (row) x 2 (column) array containing Mean and Var for

See Also

Other Flood frequency analysis functions: .sim_once(), floodcast_tub(), floodfreq(), floodgraph()

Examples

1
2
3
4
old <- prov_tides[prov_tides$Year >= 1940 & prov_tides$Year < 1950,]
new <- prov_tides[prov_tides$Year >= 2010 & prov_tides$Year < 2020,]
floodmean(old, DateTime, MLLW, 1.987)
floodmean(new, DateTime, MLLW, 1.987)

ccb60/SLRSIM documentation built on Jan. 21, 2022, 1:31 a.m.