POR_apply_annual_hiflow_stats: Calculate the 50th and 90th percentiles of a streamflow time series
Description
This function computes the 50th and 90th percentiles of a streamflow time series from annual
n-day high flow values and returns a data.frame in the format of other period-of-record (POR)
metrics.
Data.frame of 0.5 and 0.9 non-exceedance probabilities (50th and 90th percentiles),
with metric names if annual_max is a data.frame with columns named by metric.
Arguments
annual_max
'numeric' vector or data.frame. Vector or data.frame with columns of annual
n-day maximum streamflows.
quantile_type
'numeric' value. The distribution type used in the stats::quantile
function. Default is 8 (median-unbiased regardless of distribution). Other
types common in hydrology are 6 (Weibull) or 9 (unbiased for normal distributions).
Details
annual maximum of n-day moving averages can be computed during pre-processing step using preproc_precondition_data and calc_annual_flow_stats, or preproc_main for both
observed and modeled data.