Location-resolved carbon and water footprints of AI training, with hourly climate-driven cooling and calibrated uncertainty
pip install sitefootprint Copy PIP instructions
Most AI carbon calculators multiply energy by one fixed power usage effectiveness (PUE) for every data centre on Earth. SiteFootprint instead computes cooling energy and on-site water hour by hour from real weather at the chosen location, using a thermodynamic facility model calibrated against published campus PUE. It then combines this with the local grid carbon intensity and reports 95% ranges and paired comparisons between locations.
pip install sitefootprint # core (NumPy only) pip install "sitefootprint[siting]" # adds the capacity-constrained siting optimiser (SciPy) From source: pip install -e ".[test,siting]" and run pytest.
sitefootprint estimate --flop 1e25 --site Oslo --site Ashburn --site Lagos sitefootprint estimate --gpu-hours 2e6 --loc "Nairobi,-1.29,36.82,Kenya" --arch dtc_dry --years 2023 2024 sitefootprint estimate --flop 3.8e25 --site Lagos --diesel 0.25 --json sitefootprint countries sitefootprint site --runs runs.csv --cap 0.3 Reference sites: Oslo, Paris, Ashburn, Beijing, Marrakech, Lagos. Any other place is given as name,lat,lon,country.
from sitefootprint import estimate r = estimate( ["Oslo", "Lagos", {"name": "Nairobi", "lat": -1.29, "lon": 36.82, "country": "Kenya"}], flop=1e25, # or gpu_hours=... arch="evaporative", # "evaporative", "dry" or "dtc_dry" years=[2024], # 2010-2025 diesel_share=0.0, # or {"Lagos": 0.25} ) for s in r["sites"]: print(s["name"], s["co2_t"]["median"], s["water_m3"]["median"], s["prob_lower_than_reference"]) Each site returns PUE, WUE (litres per kWh of IT energy), tCO₂e and m³ of water as median with 2.5th–97.5th percentiles; the probability that it emits less than the reference location in paired draws; and the split of its log-difference from the reference into grid and facility terms.
All defaults and their sources are in sitefootprint/params.py.
The repository deploys as-is. The web app has eight pages:
Local preview: npm i -g vercel, then vercel dev.
Web limits (set in api/footprint.py): up to 6 locations, 3 years and 800 draws per request. A full request takes about 3–4 s of computation plus one weather download per location.
GET /api/footprint?countries=1 POST /api/footprint {"flop": 1e25, "arch": "evaporative", "years": [2024], "diesel_share": 0, "locations": ["Oslo", {"name": "Nairobi", "lat": -1.29, "lon": 36.82, "country": "Kenya"}]} Citing Please cite the software:
Oladeji L. SiteFootprint: location-resolved carbon and water footprints of AI training. Version 0.1.0. https://github.com/Lawrencium-103/sitefootprint
and the accompanying study: Siting large AI training runs: a calibrated, hour-resolved assessment of how grid, climate and cooling shape carbon and water footprints across six global locations (in review).
Weather: Open-Meteo (CC BY 4.0), ERA5 (Copernicus). Grid intensity: Ember via Our World in Data (CC BY 4.0). The bundled grid file records its retrieval date.
carbon footprint AI data centres PUE WUE machine learning sustainability
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.




