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{bouabid2025score,
  title={Score-based generative emulation of impact-relevant Earth system model outputs},
  author={Bouabid, Shahine and Souza, Andre N and Ferrari, Raffaele},
  journal={arXiv preprint arXiv:2510.04358},
  year={2025}
}

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.10.tar.gz (33.8 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.10-py3-none-any.whl (40.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for climemu-0.1.10.tar.gz
Algorithm Hash digest
SHA256 b816fb01308c919491375e1277470ce4e3737a2af9e73bc0fd97115a0002f739
MD5 68b15c903ae3cdcb91dd8b95096c1b91
BLAKE2b-256 f85a82f0a99ed59385240c235acf92e8e442a0c6d57854d03a03ee70d0ff93e9

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for climemu-0.1.10-py3-none-any.whl
Algorithm Hash digest
SHA256 f3e72f1826c48644a6b516593ed94690091370a891e05227fb50ff494c4d630a
MD5 0ee3c85514f6a556326aca91c2e4bf28
BLAKE2b-256 c46f80bf057e07d806dc9a64c732a3c857596efb6222c5addca56059665f5532

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