Skip to main content

Score-based generative emulation of impact-relevant earth system model outputs

Project description

image image arXiv

ESM Emulation with diffusion models in JAX

Codebase allows to run emulators of monthly averaged near-surface temperature, precipitation, relative humidity, wind speed for MPI-ESM1-2-LR, MIROC6, ACCESS-ESM1-5.

Installation

Code tested on Python ≥3.11. GPU support is required for practical usage. Install from PyPI:

CPUpip install climemu
NVIDIA GPUpip install climemu[cuda12]
Google TPUpip install climemu[tpu]

Usage

Demo

import climemu

# Instantiate emulator
emulator = climemu.build_emulator("MPI-ESM1-2-LR")

# Download pretrained weights and compile (~1min)
emulator.load()
emulator.compile(n_samples=5)   # Nb of samples generated at each function call

# Generate 5 samples for a given gmst and month
samples = emulator(gmst=2,       # GMST anomaly wrt piControl (°C)
                   month=3,      # Month index (1-12)
                   seed=0,       # Random seed
                   xarray=True)  # Return xr.Dataset

:warning: Default model files for usage are trained on the full set of Tier I SSP simulations. To reproduce the paper results follow instructions.

Citing

@article{bouabid2026score,
  title={Score-based generative emulation of impact-relevant Earth system model outputs},
  author={Bouabid, Shahine and Souza, Andre Nogueira and Ferrari, Raffaele},
  journal={Journal of Advances in Modeling Earth Systems},
  volume={18},
  number={3},
  pages={e2025MS005558},
  year={2026},
  publisher={Wiley Online Library}
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

climemu-0.1.12.tar.gz (33.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

climemu-0.1.12-py3-none-any.whl (41.0 kB view details)

Uploaded Python 3

File details

Details for the file climemu-0.1.12.tar.gz.

File metadata

  • Download URL: climemu-0.1.12.tar.gz
  • Upload date:
  • Size: 33.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for climemu-0.1.12.tar.gz
Algorithm Hash digest
SHA256 1d7395249f53179ba41571298115dcf4426f6dcaf422e83fc4fdf70f0c1dccbb
MD5 3a07ba9f3f76ecf4c2a97e4f35bb1e26
BLAKE2b-256 6e4c33b404845e70ad2c2af6cbfa2aa21471048e478d44b7b122b05ed69822c6

See more details on using hashes here.

File details

Details for the file climemu-0.1.12-py3-none-any.whl.

File metadata

  • Download URL: climemu-0.1.12-py3-none-any.whl
  • Upload date:
  • Size: 41.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.15

File hashes

Hashes for climemu-0.1.12-py3-none-any.whl
Algorithm Hash digest
SHA256 3765d00ea372ae8d39c9cb879103a171076b9f036df9dc5ced335d568e0de754
MD5 06dbc75ec238278e1c9358b2900fff0f
BLAKE2b-256 2bd8526a0a1f57e04cdf5c89c5fe5906bbd88087857b01cb94de021d8455886c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page