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)
Simulate station-based monthly climate data (Tmin/Tmax/rainfall), export station NetCDF, and provide plotting helpers.
# 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")