Table 1
Summary of key CDSim functions (Source: Authors’ own compilation).
| FUNCTION | PURPOSE | EXAMPLE SYNTAX |
|---|---|---|
| create_stations() | Create real or synthetic weather stations | create_stations(source=“file.csv”) |
| simulate_climate_series() | Generate synthetic data for temperature and rainfall time series | simulate_climate_series(stations, 2000, 2025) |
| write_station_csv() | Export simulated data to CSV format | write_station_csv(data, file=“file1.csv”) |
| write_station_netcdf() | Export simulated data into NetCDF format | write_station_netcdf(data, file=“file1.nc”) |
| plot_station_timeseries() | Produce time series visualisations | plot_station_timeseries(data, ‘Station_1’, var=’Avg. Tx’) |

Figure 1
Overview of the CDSim workflow (Source: Authors’ own illustration).

Figure 2
Demonstration of CDSim workflow (Source: Screenshot from RStudio).

Figure 3
Time series of simulated maximum temperature for the Accra station (Source: Plotted in RStudio using the CDSim framework).

Figure 4
Time series of simulated minimum temperature for the Accra station (Source: Plotted in RStudio using the CDSim framework).

Figure 5
Time series of simulated total rainfall for the Accra station (Source: Plotted in RStudio using the CDSim framework).
