Simulating Climate Data for Research and Modelling

Generate synthetic station-based monthly climate time-series including temperature and rainfall, export to Network Common Data Form (NetCDF), and provide visualization helpers for climate workflows. The approach is inspired by statistical weather generator concepts described in Wilks (1999) and Richardson (1981) .



title: "README" output: html_document

CDSim

Simulate station-based monthly climate data (Tmin/Tmax/rainfall), export station NetCDF, and provide plotting helpers.

Quick start

# install devtools then load package folder locally
# devtools::load_all("path/to/CDSim")

library(CDSim)
stations <- create_stations(n = 11, seed = 42)
sim <- simulate_climate_series(stations, 1981, 1985, seed = 101)
plot_station_timeseries(sim, "Station_1", "Avg.Tx")
write_station_netcdf(sim, "sim_example.nc")

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("CDSim")

0.1.2 by Isaac Osei, 6 months ago


https://github.com/ikemillar/CDSim


Report a bug at https://github.com/ikemillar/CDSim/issues


Browse source code at https://github.com/cran/CDSim


Authors: Isaac Osei [aut, cre] , Acheampong Baafi-Adomako [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports trend, truncnorm, ncdf4, lubridate, readr, dplyr, ggplot2, rlang, tidyr, vroom, tibble, stats

Suggests testthat, knitr, rmarkdown


See at CRAN