# Multi-Year Precipitation Memory of Groundwater Storage in Ethiopia (2003–2023)
## Overview
Analysis code and data processing pipeline for characterizing the multi-year precipitation–groundwater storage relationship across Ethiopia's major hydrogeological zones using GRACE/GRACE-FO, CHIRPS, machine learning interpretability, wavelet coherence, and Dynamic Time Warping.
## Key Findings
- Cumulative multi-year precipitation explains **72%** of GWS variance (vs Basement (0.79) > Volcanic (0.71) > Sedimentary (0.53)
## Scripts
### Run Order
```
1. GEE_GWS_Retrieval_Ethiopia.js → Google Earth Engine (data export)
2. GEE_Spatial_Indices.js → Google Earth Engine (index rasters)
3. R_GWS_Analysis_Ethiopia.R → Main analysis (R)
4. R_Hydrogeological_Zonation.R → Aquifer-specific analysis (R)
5. R_Wavelet_Analysis.R → Wavelet coherence (R)
6. R_Spatial_Indices.R → Spatial index rasters (R)
7. R_Export_Organize.R → Organize outputs (R)
```
### R Dependencies
```r
install.packages(c("tidyverse", "data.table", "lubridate", "zoo", "terra", "sf",
"ranger", "xgboost", "caret", "shapviz", "pdp", "vip",
"dtw", "WaveletComp", "patchwork", "viridis", "scales",
"cowplot", "ggcorrplot", "Metrics", "trend"))
```
### Data Sources
| Dataset | Source | Resolution | Period |
|---------|--------|-----------|--------|
| GRACE/GRACE-FO | JPL Mascon RL06.3v04 | ~25 km | 2002–2023 |
| GLDAS Noah v2.1 | NASA | 0.25° | 2002–2023 |
| CHIRPS v2.0 | CHG | 0.05° | 2003–2023 |
| Hydrogeology | Ethiopia MoWE | Vector | Static |
## Author
Kalid Hassen Yasin