Score-based generative emulation of impact-relevant earth system model outputs
Project description
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file climemu-0.1.7.tar.gz.
File metadata
- Download URL: climemu-0.1.7.tar.gz
- Upload date:
- Size: 29.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d715e34552c3c2cc11e62cbc3d0ffc234e53b38d94ce5da862d46c96335a1fdd
|
|
| MD5 |
6c5f016cb9074dad80d589e6dd32b015
|
|
| BLAKE2b-256 |
6d17607d2f0289028309caf026edcb43b7568d4076b871e9fec6b73dad371421
|
File details
Details for the file climemu-0.1.7-py3-none-any.whl.
File metadata
- Download URL: climemu-0.1.7-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f3bf68af2aab858662577f6f3045f08fa845ff24f3e5a60a60967250b7a0a4a5
|
|
| MD5 |
15b88b764710c83efb639858d7d59a6c
|
|
| BLAKE2b-256 |
7c75d2466356a6d427193016c7cc71ab54df0bea0b1eb6cd3ed59f19a8a0a553
|