← All models

HECTOR — The Hector Simple Climate Model

Loading runs...

#What this model assumes

  • Everything is represented as a single global-average value, with no regional or ocean-circulation detail.
  • Climate sensitivity, ocean heat uptake, aerosol forcing, CO2 fertilization, and soil respiration sensitivity are each one fixed global number.
  • Fully deterministic: the same scenario and parameters always give exactly the same answer, with no uncertainty range.
  • Temperature is an anomaly relative to hector's own ~1750 baseline, not a modern reference period.

#Changelog

  • v3.2.0 (2024) — Corrected aerosol forcing coefficients (based on Zelinka et al. 2023) and enabled a recalibrated permafrost module.
  • v3.1 (2023) — Added global mean surface temperature as a direct model output.
  • v3.0 — Rewrote Hector's internals in modern C++ and restructured it around a plug-in component architecture.
  • v2.0 — Early open-source release of Hector as a standalone reduced-complexity climate model from JGCRI/PNNL.

#How to run HECTOR locally

  1. A plain `pip install pyhector` fails on a bare machine -- it needs a C/C++ toolchain and Boost headers to compile Hector's core from source. Pull the prebuilt image instead of building it yourself; it already has all of that baked in. This runs the ssp126 scenario by default and prints the result as JSON. To run a different one, pass `SCENARIO_PARAMS` as an environment variable (supported scenarios: ssp119, ssp126, ssp245, ssp370, ssp585).

    docker pull possibleplanets/hector
    docker run --rm possibleplanets/hector
    # -> {"temperature.global_tas": [...], "simpleNbox.CO2_concentration": [...], ...}
    
    docker run --rm -e SCENARIO_PARAMS='{"scenario": "ssp585"}' possibleplanets/hector
  2. Resource footprint

    Building the Docker image installs about 800MB of dependencies, mostly Boost headers and a C/C++ compiler used once to build Hector's core -- the prebuilt image skips all of that. Each run takes about 1 to 2 seconds on 1 to 2 CPUs, with no meaningful memory requirement.

#How to run HECTOR through the REST API

  1. Submit a run with your API key, then poll it until it finishes.

    curl -X POST https://possibleplanets.org/v1/models/hector/runs \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -d '{"params": {"scenario": "ssp245"}}'
    # -> {"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": {
            "columns": ["temperature.global_tas", "simpleNbox.CO2_concentration", "forcing.RF_tot"],
            "index": [1745, 1746, ..., 2299, 2300],  // 556 years
            "data": {
              "temperature.global_tas": [0.0, 0.0, ..., 2.7623, 2.7599],
              "simpleNbox.CO2_concentration": [277.15, 277.19, ..., 517.66, 517.27],
              "forcing.RF_tot": [0.0, 0.0, ..., 3.9049, 3.8998]
            }
          },
    #   "duration_seconds": 1.25
    # }
    # year 2100: temperature.global_tas = 2.72°C

    Cached results don't need an API key.

  2. Cost

    This model runs on 2 vCPUs and 1 GiB of memory for about 1 second per run, which costs roughly $0.04 per 1,000 runs on Daytona. Results that are already cached are free.