Simulating Climate Data for Research and Modelling
Overview
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) doi:10.1016/S0168-1923(99)00037-4 and Richardson (1981) doi:10.1029/WR017i001p00182.
Major improvements
- Revised climate simulation engine (
simulate_climate_series()): - Replaced the previous implementation with a more physically consistent stochastic framework.
- Improved representation of seasonality, temporal persistence (AR(1)), and long-term trends.
- Introduced bounded temperature generation using truncated normal (Tmin) and gamma-based perturbation (Tmax).
- Enhanced rainfall modelling using a first-order Markov chain for occurrence and gamma-distributed intensity.
- Added rainfall–temperature coupling, ensuring realistic negative dependence between precipitation and maximum temperature.
- Enforced diurnal consistency constraint (Tmax > Tmin) after rounding.
Enhancements
- Improved statistical realism of simulated outputs:
- More realistic skewness in rainfall distributions.
- Better alignment of autocorrelation structure with climatological expectations.
Show all changes in 0.1.2Hide the rest of the changes in 0.1.2
- Strengthened cross-variable relationships (temperature–rainfall coupling).
- Updated internal validation workflow:
validate_climate_internal()now performs more robust checks on:- physical constraints
- distributional properties
- temporal autocorrelation
- trend behavior
- seasonal patterns
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK14 OK2026-03-10
Documentation
- Help pages
- 10includes a package overview page
- Examples that run
- 100%5 run in a plain check
- Exported functions with examples
- 63%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
Releases over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/ikemillar/cdsim on 2026-10-21.
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- 0.1.2Latest
- 0.1.12025-12-15
- RR 4.5.0 released · 2025-04-11
Package metadata
- First published
- 2025-12-15
- Total releases
- 2 / 1 yrs
- License
- MIT + file LICENSE OSI
- Download size
- 1.1 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("CDSim")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.