CoSMoS is an R package that makes time series generation with desired properties easy. Just choose the characteristics of the time series you want to generate, and it will do the rest. The generated time series preserve any probability distribution and any linear autocorrelation structure. Users can generate as many and as long time series from processes such as precipitation, wind, temperature, relative humidity etc. It is based on a framework that unified, extended, and improved a modelling strategy that generates time series by transforming “parent” Gaussian time series having specific characteristics (Papalexiou, 2018).
To install the latest version of the package run:
## copy-paste to get the latest version of CoSMoS
if (!require('devtools')) {install.packages('devtools'); library(devtools)}
install_github('TycheLab/CoSMoS', upgrade = 'never')
library(CoSMoS)
`CoSMoS-package` ?
The package was partly funded by the Global institute for Water Security (GIWS; https://www.usask.ca/water/) and the Global Water Futures (GWF; https://gwf.usask.ca/) program.
Coded by: Filip Strnad and Francesco Serinaldi
Conceptual design by: Simon Michael Papalexiou
Tested and documented by: Yannis Markonis
Maintained by: Kevin Shook
Papalexiou, S.M., 2018. Unified theory for stochastic modelling of hydroclimatic processes: Preserving marginal distributions, correlation structures, and intermittency. Advances in Water Resources 115, 234-252. https://doi.org/10.1016/j.advwatres.2018.02.013