Reproducible Python workflow for benchmark-relative State, multi-window Trend, fixed-baseline Performance and joint land-productivity diagnostics across Africa.
# Reference-led State–Trend–Performance analysis of land productivity
This repository contains the reproducible Python workflow used to construct, evaluate and integrate benchmark-relative **State**, multi-window **Trend** and fixed-baseline **Performance** indicators from annual MODIS NDVI across terrestrial Africa.
The code accompanies the manuscript:
> **Reference-led re-operationalisation of productivity-based State, Trend and Performance beyond harmonised land-degradation reporting**
The numbered scripts reproduce the main processing stages. The `STP_Supplementary_Database` package then aggregates the canonical raster products into reporting-unit summaries, diagnostic tables, figures and joint State–Trend–Performance outputs.
---
## 1. Repository structure
```text
repository-root/
├── README.md
├── Codes/
│ ├── 01_Download_modis_mod13q1_ndvi.py
│ ├── 02_Download_ESA_CCI_LULC.py
│ ├── 03_STATE_Annual.py
│ ├── 04_TREND_Annual.py
│ ├── 04A_TREND_statistical_support_and_LULC_diagnostics.py
│ ├── 05_PERFORMANCE_Annual.py
│ └── Package/
│ └── STP_Supplementary_Database/
│ ├── 00_config.py
│ ├── 01_run_supplementary_STP.py
│ ├── requirements.txt
│ ├── documentation/
│ ├── lookups/
│ ├── modules/
│ │ ├── __init__.py
│ │ ├── core.py
│ │ └── workflows.py
│ └── outputs/
├── Polygons/
│ ├── Africa.gpkg
│ ├── Africa_49States_Undisputed.gpkg
│ └── Afr_Ecoregions2017_FG_True.gpkg
└── Data/
└── [downloaded and derived raster inputs]
```
### Folder roles
| Location | Role |
|---|---|
| `Codes/` | Ordered scripts for acquisition, core metric construction and Trend diagnostics. |
| `Codes/Package/STP_Supplementary_Database/` | Modular post-processing package for reporting zones, summaries, sensitivity analyses, pairwise comparisons, joint STP products, figures and quality-control outputs. |
| `Polygons/Africa.gpkg` | Africa analysis and crop …