Skip to content

Sustainable-Solutions-Lab/GLADE

Repository files navigation

GLADE logo GLADE

Docs Release arXiv

GLADE (Global Land, Agriculture, Diet and Emissions) is a global food-systems optimization model built on PyPSA and Snakemake. It explores environmental, nutritional, and economic trade-offs through a configuration-driven mixed integer linear program built around a reproducible workflow.

Map showing optimal crop production patterns at a $50/t CO2-equivalent carbon price.

Dominant crop group, land-use intensity, and livestock protein output at a $50/t CO₂-equivalent GHG price — one snapshot from a scenario sweep made possible by the model.

Documentation

Full documentation (model design, configuration reference, data provenance, API) is published at https://sustainable-solutions-lab.github.io/GLADE/. There, you can also find more information on installation as well as download tutorial Jupyter notebooks to learn more about how to run GLADE and analyze results.

Quickstart

Prerequisites

  1. Install Git and pixi (cross-platform package manager)
  2. Ensure at least ~20 GB of free disk space for datasets, software dependencies and intermediate results.

Installation

git clone https://github.com/Sustainable-Solutions-Lab/GLADE.git
cd GLADE
pixi install

Setup (required before first run)

  1. API credentials: Copy and configure the secrets file:

    cp config/secrets.yaml.example config/secrets.yaml
    # Edit config/secrets.yaml with your ECMWF Climate Data Store credentials
    # Get credentials at: https://cds.climate.copernicus.eu/user/register
  2. Manual downloads: Three datasets require free registration and manual download:

    See the Data Sources documentation for detailed instructions. Place files in data/manually_downloaded/.

Run the model

tools/smk -j4 --configfile config/validation.yaml

The first run downloads several gigabytes of global datasets (GAEZ, GADM, land cover, etc.) and may take 30+ minutes. Once the data downloading and preprocessing steps are complete, subsequent model runs are relatively fast. Building and solving a typical model instance at default resolution will typically take only a few minutes and require about 3 GB of RAM.

Solver options

The default environment uses the HiGHS open-source solver. For faster solving with Gurobi (requires license):

pixi install --environment gurobi
tools/smk -e gurobi -j4 --configfile config/validation.yaml

Notes

  • tools/smk wraps Snakemake with memory limits and environment configuration
  • By default, results are saved under results/{config_name}/ (path roots can be overridden via config.paths)
  • The workflow validates configuration and data before running

Repository Layout

  • workflow/ – Snakemake rules and scripts, including the top-level workflow/Snakefile.
  • config/ – Scenario YAMLs and shared fragments that parameterize the workflow.
  • docs/ – Sphinx documentation sources (see docs/README.md for dev tips).
  • tools/ – Helper wrappers such as tools/smk for consistent CLI entry points.
  • results/ – Generated artifacts grouped by configuration (never hand-edit).

Additional contribution guidance can be found in the documentation; dataset provenance is tracked in docs/data_sources.rst.

Citing GLADE

If you use GLADE in your research, please cite the paper that introduces and applies the model:

van Greevenbroek, K., Davis, S. J., & Caldeira, K. (2026). Reducing health and climate impacts of the global food system. arXiv:2606.15471. https://doi.org/10.48550/arXiv.2606.15471

@article{vangreevenbroek2026glade,
  title   = {Reducing health and climate impacts of the global food system},
  author  = {van Greevenbroek, Koen and Davis, Steven J. and Caldeira, Ken},
  year    = {2026},
  journal = {arXiv preprint arXiv:2606.15471},
  doi     = {10.48550/arXiv.2606.15471},
  url     = {https://arxiv.org/abs/2606.15471}
}

To cite the software itself, use the metadata in CITATION.cff (also exposed via the "Cite this repository" button on GitHub). See the publications page for a full list of work based on GLADE.

License

GLADE is licensed under GPL-3.0-or-later; documentation content follows CC-BY-4.0. See LICENSES/ for details.