← All models

OSCAR — A compact Earth system model

Loading runs...

#What this model assumes

  • Aggregates the world into 5 broad regions, not finer spatial detail.
  • A single run draws one Monte Carlo sample from its parameter uncertainty, so one run is one plausible trajectory, not a converged range.
  • Some scenarios can produce non-finite values partway through a run -- a real numerical limit, not a data artifact.
  • Each run starts from a zero-valued state in 1750, which is why its chart starts near 0 rather than already elevated.

#Changelog

  • v3.3 — Updated global temperature response and effective radiative forcing parameters to IPCC AR6 WG1 Chapter 7 (based on 35 CMIP6 models); switched internal output to mid-year averages; fixed an emissions-summation bug.
  • v3.2 — Added MESSAGE 11-region aggregation and ODR calibration; improved the ocean carbon cycle (Bern-SCM-based) and adaptive time-stepping.
  • v3.1.1 — The exact version used in the IPCC AR6 assessment.
  • v3.0 — Last update of the OSCAR v2 line, intended to be as close to OSCAR v3.0 as possible.

#How to run OSCAR locally

  1. OSCAR is distributed as a Git repository managed with Poetry, not a pip package.

    git clone https://github.com/jamesmurdza/OSCAR.git
    cd OSCAR
    poetry install
  2. Run one of its own example scripts directly through Poetry, from inside that cloned directory.

    poetry run python run_scripts/basic_example_1.py
  3. Resource footprint

    Installing OSCAR takes about 770MB of disk space. A full run takes 6 to 9 minutes on 4 CPUs with 8GB of memory. Without that memory, it gets OOM-killed in under 10 seconds just loading its parameter files.

#How to run OSCAR 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/oscar/runs \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -d '{"params": {"scenario": "SSP2-4.5", "nMC": 1}}'
    # -> {"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": {
            "year": [1750, 1751, ..., 2099, 2100],  // 351 years
            "mean_D_Tg": [0.0, -0.0028, ..., 2.517, 2.521],
            "std_D_Tg": [0.0, 0.0, ..., 0.0, 0.0]  // 0 at nMC=1 -- only one sample, nothing to vary
          },
    #   "duration_seconds": 522
    # }
    # mean_D_Tg at year 2100 = 2.52°C

    Cached results don't need an API key.

  2. Cost

    This model runs on 4 vCPUs and 8 GiB of memory for about 9 minutes per run, which costs roughly $0.048 (~4.8¢) per run on Daytona. Results that are already cached are free.