Skip to content

CDSim

0.1.2Package record

Simulating Climate Data for Research and Modelling

0packages depend
3.2Kdownloads / year
27.4%test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.1.2

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

CRAN checks
13OK
Slowest check: 2.4 min · r-release-macos-x86_64
Status changes
  • OK13 OK2026-08-05
  • NOTE12 OK, 1 NOTE2026-08-01
  • OK14 OK2026-03-10
Advisories

none known

Documentation

In release 0.1.2
READMEYes · 57 wordsVignettesYes · 1 · dynamicNEWSYes · 67% structured · mentions 0.1.2Citation fileNoWebsitenot declared in DESCRIPTION
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

3.2K
CRAN downloads in the past year
Rank #11,253 · ~9/day · ~268/mo
Daily download trend is not available in this view yet.
33230 days
95390 days
3.2K1 year
Compare downloads with other packages →
Also on272 r2u

Repository

0Stars
0Forks
0Open issues
0Open PRs
1Releases
5Commits
1Commit identities
5 commits · Last activity 2026-04-22
Responsiveness
not measured

Releases over time

2026-04-22 · 12026-07-07 · 1
PracticesBeta

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.

Docs source (1)
pkgdown
CRAN release process (2)
cran-comments.mdCRAN-SUBMISSION
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
14 external dependencies (excludes base and recommended)

Installing CDSim adds 47 packages (28 with compiled code, 34 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, Rcpp 1.8 MB.

Depends (0)
none
LinkingTo (0)
none
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

People & History

People (2)
Author, Maintainer since 0.1.1 (2025)
Listed in earlier versions (1)
Sivaparvathi Dusari
no longer listed · 0.1.1
Releases (2)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • 0.1.2Latest
    record
    2026-04-22 · current release · diff ↗ ·
    added 2 exports
    validate_climate, validate_climate_internal
  • 0.1.1
    record
    2025-12-15
  • R
    R 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")
Osei, I., & Baafi-Adomako, A. (2026). CDSim: Simulating Climate Data for Research and Modelling (Version 0.1.2) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for CDSim version 0.1.2 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy