README
Dataset and code for "Future intensification of compound heatwaves in Africa and associated socio-economic exposure across global warming levels"
This repository provides pre-computed Compound Heatwave (CHW) metrics and processed variables derived from CMIP6 model simulations and ERA5 reanalysis data.
Data
Original CMIP6 and ERA5 files are not included due to size limitations.
All processed data and scripts required to reproduce the analysis are provided.
Original datasets can be regridded using CDO and shell scripts.
Scripts
compound_heatwave.py: Computes CHW metrics (can be automated with cal_heatwave.sh).
extract_hottest_3month.py: Extracts data for the hottest consecutive 3-month period.
compute_divergence.py: Compute divergence using u-wind and v-wind.
Jupyter Notebooks
The notebooks contain both analysis workflows and figure generation code. Each notebook corresponds to specific figures in the paper.
Hottest_month.ipynb → Fig. 1
KDE.ipynb → Fig. S1
Validation.ipynb → Fig. 2, S12
CHW_analysis.ipynb → Fig. 3, 4b, 6, S2, S3, S4b–d, S5e–g, S9
Relative_ratio.ipynb → Fig. 4a, S4a–c, S5a–c
Probability_ratio.ipynb → Fig. 5, S6
Surf_energy_budget.ipynb → Fig. 7, S10, S11
Exposure.ipynb → Fig. 8, S21–S28
Projected_change_mech.ipynb → Fig. S7, S8, S13–S20