MAGICC — Model for the Assessment of Greenhouse Gas Induced Climate Change
Loading runs...
#What this model assumes
- Scenarios are RCPs: trajectories defined by a target radiative forcing level, not a socioeconomic narrative.
- Only climate sensitivity is adjustable here -- its other internal physical parameters use built-in defaults.
- Output is a single global average, with no spatial resolution.
- Temperature is an anomaly relative to MAGICC's own pre-industrial baseline.
#Changelog
- MAGICC 6.8.01 — The MAGICC6 generation (Meinshausen, Raper & Wigley, ACP 11, 1417-1456, 2011); this project runs this exact binary, confirmed from its own embedded version banner.
- pymagicc adds MAGICC7 support — pymagicc PR #168 added compatibility with the newer MAGICC7 binaries and restructured pymagicc's bundled MAGICC6 directory layout to match MAGICC7's.
#How to run MAGICC locally
pymagicc wraps a real Windows MAGICC6.exe binary via Wine, and its current pip dependency resolution pulls a newer xarray it can't import. Pull the prebuilt image instead of installing Wine yourself -- it already has Wine and a working xarray version baked in. This runs the RCP26 scenario by default and prints the result as JSON. To run a different one, pass `SCENARIO_PARAMS` as an environment variable (supported scenarios: RCP26, RCP45, RCP60, RCP85).
docker pull possibleplanets/magicc docker run --rm possibleplanets/magicc # -> {"years": [...], "T_atmos": [...]} docker run --rm -e SCENARIO_PARAMS='{"scenario": "RCP85"}' possibleplanets/magiccResource footprint
Wine alone needs at least 2 to 3GB of free disk space, on top of pymagicc's own small (tens of MB) footprint, if you build it yourself -- the prebuilt image skips that install entirely. That disk requirement didn't fit in the environment used to write this guide, which had only about 1.6GB free, so budget more than that if you do build it locally.
#How to run MAGICC through the REST API
Submit a run with your API key, then poll it until it finishes.
curl -X POST https://possibleplanets.org/v1/models/magicc/runs \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{"params": {"scenario": "RCP45"}}' # -> {"run_id": "a1b2c3d4-5e6f-4789-9abc-def012345678", "status": "queued"} curl https://possibleplanets.org/v1/runs/a1b2c3d4-5e6f-4789-9abc-def012345678 \ -H "Authorization: Bearer YOUR_API_KEY" # -> { # "status": "succeeded", # "result": { "years": [1765, 1766, ..., 2499, 2500], "T_atmos": [0.0, 0.01, ..., 2.6, 2.6] // ILLUSTRATIVE -- see docs/api-examples/README.md }, # "duration_seconds": 5.5 # } # illustrative data, not an independently re-executed run -- see docs/api-examples/README.mdCached results don't need an API key.
Cost
This model runs on 2 vCPUs and 1 GiB of memory for about 6 seconds per run, which costs roughly $0.18 per 1,000 runs on Daytona. Results that are already cached are free.
Possible Planets