Sudan Downscaled and Bias-Corrected Climate Change Projections Dataset for National Adaptation Plans (NAPS)
dbcccpR: A Toolbox for Analyzing Climate Projections in Sudan
The dbcccpR package provides a suite of tools for visualizing, analyzing, and comparing the Downscaled and Bias-Corrected Climate Change Projections (DBCCCP) dataset for Sudan. It is designed to empower State-Level Technical Committees, researchers, and decision-makers with actionable insights into future climate trends at the local level.
Features
Spatial Visualization: Plot meteorological stations on a map of Sudan and its individual states.
Time Series Analysis: Generate and visualize descriptive statistics and trends for each station, scenario, and time period.
Statistical Summaries: Perform descriptive statistics (mean, median, standard deviation) for individual or multiple stations.
Scenario Comparison: Compare climate variables across RCP 4.5, RCP 8.5, and the Historical baseline (1971-2000).
Usability: Includes a curated set of functions to streamline data exploration, aggregation, and analysis.
Installation
This package is currently a development version. You can install it directly from GitHub using the devtools package.
# Install devtools if you haven't already
# install.packages("devtools")
devtools::install_github("YourGitHubUsername/dbcccpR")
Setup and Dependencies
To use this package, you must have the following data files:
DBCCCP Dataset: The full dataset of 2,640 CSV files (daily, monthly, annual) organized by state and station as described in the report.
Sudan Shapefile (.shp): A shapefile for Sudan and its states is required for all mapping functionalities. This can be obtained from publicly available sources (e.g., humanitarian data exchange, natural earth data). The package expects the shapefile to be named sudan_states.shp in your working directory.
Usage
1. Visualizing Meteorological Stations
The plot_stations_on_map() function allows you to visualize all 44 meteorological stations on a map of Sudan.
library(dbcccpR)
# Load the Sudan shapefile (replace with your file pa …