MIT EarthSampler
Pretrained generative emulators on CMIP6 Earth system model for sampling spatially coherent projections of impact-relevant climate variables.
Installation
Code tested on Python ≥3.11. GPU support is required for practical usage. Install from PyPI:
| CPU | pip install earthsampler |
| NVIDIA GPU | pip install earthsampler[cuda12] |
| Google TPU | pip install earthsampler[tpu] |
Usage
import earthsampler
# Instantiate emulator
emulator = earthsampler.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
Reference
@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}
}
:warning: Code and instructions to reproduce the paper results have been moved to a legacy branch
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 earthsampler-0.2.0.tar.gz.
File metadata
- Download URL: earthsampler-0.2.0.tar.gz
- Upload date:
- Size: 35.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b77f6fa300241c3ad57b90ad076ece24f64f8ee740913c36df16384cc6c2fe6
|
|
| MD5 |
ea36eb7dbe5ec15e55f1f90bf2b411bc
|
|
| BLAKE2b-256 |
636daeb608efd85ef35e50629a6388fb2e451efc397c4840c362861947d05335
|
File details
Details for the file earthsampler-0.2.0-py3-none-any.whl.
File metadata
- Download URL: earthsampler-0.2.0-py3-none-any.whl
- Upload date:
- Size: 48.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.8.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0618ce1a1235a7b85e305bad0b668c61697fa7d4158d47c9b74eb721df679f38
|
|
| MD5 |
243933d9f0508fd19896bae69ad4b9ec
|
|
| BLAKE2b-256 |
aca708e9d5aee45f6cd7370b214f853fdecf2942c4107df674e806ba52f68ae5
|