evtools
evtools
Extreme-value helper functions: ports of EVTools::EI and of the KNMI scripts Wfit.R, tau2upot.R, tau2u10.R, u102tau.R, correctfrequencies.R.
Functions
| Name | Description |
|---|---|
| EI | EVTools::EI: extremal index estimates (upcrossings and Ferro & Segers) for ngr thresholds. |
| Wfit | Wfit.R: grid-search least-squares fit of a 2- (or 3-) parameter Weibull tail. |
| correctfrequencies | correctfrequencies.R: correction factors for the higher serial dependence in the low range. |
| fit_eimdl | eimdl <- lm(lEI ~ y, EIm[EIm\(y < 5.5 & EIm\)y > 0.05, ]); returns the coefficients (intercept, slope). |
| tau2u10 | tau2u10.R: wind stress to 10-m wind speed using the Charnock relation. |
| tau2upot | tau2upot.R: wind stress [Pa] to potential wind speed [m/s]. |
EI
evtools.EI(X, l=50, ngr=20)EVTools::EI: extremal index estimates (upcrossings and Ferro & Segers) for ngr thresholds.
Wfit
evtools.Wfit(mu, y, npar)Wfit.R: grid-search least-squares fit of a 2- (or 3-) parameter Weibull tail.
npar = 2: log(mu) = c - d * y^(1/rho), returns sigma = d^(-rho), mu0 = exp(c). The regression for each rho is the ordinary least-squares line (as lm in R).
correctfrequencies
evtools.correctfrequencies(p, eimdl, EIvalue)correctfrequencies.R: correction factors for the higher serial dependence in the low range.
fit_eimdl
evtools.fit_eimdl(p, EIFS)eimdl <- lm(lEI ~ y, EIm[EIm\(y < 5.5 & EIm\)y > 0.05, ]); returns the coefficients (intercept, slope).
tau2u10
evtools.tau2u10(tau, char=0.018, maxcd=np.inf)tau2u10.R: wind stress to 10-m wind speed using the Charnock relation.
tau2upot
evtools.tau2upot(tau)tau2upot.R: wind stress [Pa] to potential wind speed [m/s].