Skip to content

Latest commit

 

History

101 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSCAR-user 🌍

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.


🚀 Installation

OSCAR can be installed via pip or uv. We recommend uv for a faster and cleaner environment setup.

Option 1: Using uv (Recommended)

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

Option 2: Using standard pip

# Install directly from GitHub
pip install git+https://github.com/bq-zhu/OSCAR-user.git

# Run the verification model
oscar run

🔎 Discovery, Help & Run Modes

OSCAR 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.


🛠 Usage Examples

Terminal (Standard Mode)

Run the 2014-2100 verification simulation with a single command:

oscar run

Python (Configured Mode)

Run 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"
)

Python (Customized Mode)

Run user defined scenarios

Preparation:

  1. Download Templates: Look for setting_template.yaml

  2. 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
  3. 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.


🗑 Uninstallation

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.

📝 Citation & Contact

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.


Developed by Biqing (2026) to promote reproducible and accessible climate modeling.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages