Skip to main content

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

Project description

image image

ESM Emulation with diffusion models in JAX

This repository contains the implementation for the paper "Score-based generative emulation of impact-relevant earth system model outputs". Codebase allows to run emulators of monthly averaged near-surface temperature, precipitation, relative humidity, windspeed for MPI-ESM1-2-LR, MIROC6, ACCESS-ESM1-5.

Installation

Code tested on Python 3.10, 3.11, 3.12. GPU support is required for efficient usage. Install from PyPI:

pip install climemu

Usage

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.

Citation

add

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.8.tar.gz (29.5 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.8-py3-none-any.whl (36.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for climemu-0.1.8.tar.gz
Algorithm Hash digest
SHA256 73e5e31eb2a39238e88b0137c3e6d2b7846a3457418d22df4f26118e3002957e
MD5 d4fc6e30b91e1c103eb093987d734586
BLAKE2b-256 aeeca866f5fa431f3218d8da329742a1e1c9d3689b0550a326a25a0a4d8c34ff

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for climemu-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 0e2c9e181c302e2d248d8bbfb68de4746e90c283fc4c2cd41e59d2170904d949
MD5 3a6d80c09e1017eef18b5b7f7d58bb98
BLAKE2b-256 8be9acb482c77ed6eaa1f3d077e06fd0eeffecfecd078cd6eb4d6da38fb95c38

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