{MSTWeatherGen} Multivariate and Space-Time stochastic Weather Generator R package is designed for the simulation of multivariate spatio-temporal meteorological variables. It provides tools for estimating the model parameters and generating synthetic weather data that can be used for a variety of applications, including climate research, agricultural or hydrological modeling.
For more details on the methodology, see the publication:Obakrim, S. et al. “A multivariate and space-time stochastic weather generator using a latent Gaussian framework,” Stochastic Environmental Research and Risk Assessment, 2025. doi:10.1007/s00477-024-02897-8
You can install MSTWeatherGen from GitHub as follows:
# install.packages("remotes")
remotes::install_github("Chair-Geolearning/MSTWeatherGen")The main branch (default branch) is stable.
create a project using version control with the URL : (SSH) git@github.com:Chair-Geolearning/MSTWeatherGen.git or (HTTPS read only) https://github.com/chair-geolearning/MSTWeatherGen.git
Using git (you need to specify your ssh public key before in github account) :
{bash} cd /your/working/directory git clone git@github.com:Chair-Geolearning/MSTWeatherGen.git cd MSTWeatherGen
Main commands:
{bash} ## commit all modification git commit -a -m "commit message" ## push (update) github repository git push origin <branch> ## pull (update) to local working directory git pull origin <branch>
When changing package code, before using it you need to “reinstall” it.
devtools::load_all()
To active debug mode :
debug("function_name")
#debug("MSTWeatherGen::MSTWeatherGen_Estim")
function_name()
undebug("function_name")
R CMD build .
# devtools::build()
R CMD check MSTWeatherGen_x.x.x/tar.gz
# devtools::check()
Options
Active all unit tests set “R_TEST_ALL” global variable to TRUE.
Disable vignette building (that can take to much time) use : --no-build-vignettes at build and --ignore-vignettes at check.
To learn how to use the MSTWeatherGen package, please refer to the detailed vignette available here.
This work was made possible thanks to the Geolearning Chair (Lien: ) funded by Andra, BNP-Paribas, CCR and the SCOR Foundation for Science. A preliminary version was supported by funding from the French National Research Agency (ANR) as part of the BEYOND project (Contract No. 20-PCPA-0002).





The package MSTWeatherGen is under GNU GPL V3.
See LICENSE file.