tyearsS(lfobj, event = 1/probs, probs = 0.01, pooling = NULL, dist = "wei", check = TRUE, zeta = NULL, plot = TRUE, col = 1, log = TRUE, legend = TRUE, rp.axis = "bottom", rp.lab = "Return period", freq.axis = TRUE, freq.lab = expression(paste("Frequency " *(italic(F)), " = Non-Exceedance Probability P ", (italic(X) <= italic(x)))),="" xlab =" expression("Reduced" variate,="" "="" *="" -log(-log(italic(f)))),="" ylab =" "Quantile"," variable =" c("volume"," "duration"),="" aggr =" "max"," hyearstart =" hyear_start(lfobj)," ...)<="" div="">=>event = 100 will yield the 100 years extreme low flow event.pooling.lmom-package and their reversed counterparts can be chosen.check_distribution get called?'gpa', 'ln3', 'wak' and 'wei'. The default value of NULL results in not bounding the distribution, therefore the parameter zeta is estimated.TRUE, sample observations as well as estimated quantile functions are plotted.dist, specifying the color used for plotting.TRUE probabilities will be plotted on a double logarithmic scale.'bottom', 'top' and 'none'. Alternatively, the position of the scale bar can be specified as an real number between 0 and 1, indicating the y-position of the legend.'v' to calculate volumes or 'd' for durations.max or sum used for aggregating volumes or durations of a hydrological year.water_year. The default is, to retrieve the values stored in the attributes of the lfobj. find_droughts, e.g. threshold.evfit.
dist and event.According to paragraph 7.4.2 of the WMO manual, special care has to be taken in the presence of zero flow observations. A cdf called G(x) is fitted to the non-zero values of the original time series
If a distribution is fitted which allows for finite lower bound (zeta), and zeta is estimated being negative, estimation is repeated constraining zeta = 0. If this behavior is not desired, the parameter zeta has to be set explicitly.
rp <- c(1.3, 3, 5, 35)
sumD <- tyearsS(ngaruroro, event = rp, dist = "wei",
variable = "d", aggr = sum)
sumD
summary(sumD)
Run the code above in your browser using DataLab