A user-friendly, reduced-complexity Earth system model (ESM) for climate research. This package provides a streamlined interface for running historical reconstructions and future projections across multiple scientific scenarios and regions.
OSCAR can be installed via pip or uv. We recommend uv for a faster and cleaner environment setup.
Requires uv.
# Create a virtual environment and install OSCAR
uv venv
uv pip install git+https://github.com/bq-zhu/OSCAR-user.git
# Run the verification model
uv run oscar run# Install directly from GitHub
pip install git+https://github.com/bq-zhu/OSCAR-user.git
# Run the verification model
oscar runOSCAR is self-documenting and supports multiple run levels.
You can both inspect a mode and execute it from the Terminal or Python.
| Mode | Purpose | Inspect (Terminal) | Inspect (Python) | Run (Terminal) | Run (Python) | Status |
|---|---|---|---|---|---|---|
| General | Package overview & guidance | oscar |
oscar.info() |
— | — | ✅ Available |
| Standard | Instant verification simulation | oscar info standard |
oscar.info("standard") |
oscar run |
oscar.run() |
✅ Available |
| Configured | Official scenario library runs | oscar info configured |
oscar.info("configured") |
oscar run -m configured |
oscar.run(mode="configured") |
✅ Available |
| Customized | User-defined research workflows | — | oscar.info("customized") |
— | oscar.run(mode="customized") |
✅ Available |
| Advanced | Core model development | — | — | — | oscar.run(mode="advanced") |
🚧 In Development |
Note: Scientific modes (Configured and above) require access to a large data library.
The model will guide you through a one-time directory initialization on first use.
Run the 2014-2100 verification simulation with a single command:
oscar runRun a specific CMIP6 regional projection for multiple SSP scenarios:
import oscar
# Run official scenarios for the 5 RCP regions
oscar.run(
mode="configured",
scenario=["SSP1-2.6", "SSP5-8.5"],
region="RCP_5reg"
)Run user defined scenarios
Preparation:
-
Download Templates: Look for setting_template.yaml
-
Create Project Folder : oscar.create_project('my-project')
- (optional) put user forcing in this project folder (if empty, model will run with baseline scenarios)
- modify the setting file: setting_my-experiment.yaml
-
Run Simulation with:
import oscar
# Run user-defined scenarios
oscar.run(
mode="customized",
project='my-project',
experiment='my-experiment'
)Note: run oscar.info('customized') for detailed information.
To remove OSCAR and its associated files:
| Target | Command / Action |
|---|---|
| Package (uv) | Delete the .venv folder and the project directory. |
| Package (pip) | Run pip uninstall oscar. |
| Data Library | Manually delete the data folder you initialized during setup. |
OSCAR-user is created by Biqing Zhu, motivated by the need to modernize the OSCAR model (based on v3.3) and provide the community with a more accessible, stable, and user-friendly interface.
- Author & Contact: Biqing Zhu (zhub@iiasa.ac.at)
- Scientific Core: Based on OSCAR v3.3.
- Citation: If you use this package in your research, please cite the original model and this repository: [https://doi.org/doi:10.5194/gmd-10-271-2017]
Developed by Biqing (2026) to promote reproducible and accessible climate modeling.