Learn R Programming


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")

Copy Link

Version

Install

install.packages('CDSim')

Version

0.1.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Isaac Osei

Last Published

December 15th, 2025

Functions in CDSim (0.1.1)

write_station_netcdf

Write station NetCDF (station x time) Exports a simulated climate station dataset to a NetCDF file.
simulate_climate_series

Simulate monthly climate time series for stations
write_station_csv

Write station CSV Exports a simulated climate station dataset to a CSV file.
CDSim-package

CDSim: Climate Data Simulation Toolkit
create_stations

Create or load station metadata
visualization

Visualization Functions for Climate Data
safe_name

Make a safe filename
plot_station_timeseries

Plot Station Time Series with Seasonal Detection