This R package implements a spatio-temporal stochastic model for extreme rainfall using EGPD marginals and r-Pareto processes, while incorporating advection effects.

Simulated extreme rainfall episode using the proposed spatio-temporal model.
The proposed framework combines:
- EGPD marginals for extreme rainfall intensities,
- r-Pareto processes to model extreme spatio-temporal dependence structure,
- advection effects to account for rain storm displacement
Before installing generain, make sure the dependencies RandomFieldsUtils and RandomFields are installed. These packages are no longer actively maintained, but fixed versions are proposed by Ian Flint. The fixed versions are available via the GitHub repositories iflint1/RandomFieldsUtils and iflint1/RandomFields.
You can install generain directly from GitHub using either devtools or remotes:
devtools::install_github("chloesrcb/generain")or
remotes::install_github('chloesrcb/generain', force=TRUE)Once installed, load the package with:
library(generain)