Skip to main content

image image arXiv

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:

CPUpip install earthsampler
NVIDIA GPUpip install earthsampler[cuda12]
Google TPUpip 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

earthsampler-0.2.0.tar.gz (35.5 kB view details)

Uploaded Source

Built Distribution

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

earthsampler-0.2.0-py3-none-any.whl (48.2 kB view details)

Uploaded Python 3

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

Hashes for earthsampler-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8b77f6fa300241c3ad57b90ad076ece24f64f8ee740913c36df16384cc6c2fe6
MD5 ea36eb7dbe5ec15e55f1f90bf2b411bc
BLAKE2b-256 636daeb608efd85ef35e50629a6388fb2e451efc397c4840c362861947d05335

See more details on using hashes here.

File details

Details for the file earthsampler-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for earthsampler-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0618ce1a1235a7b85e305bad0b668c61697fa7d4158d47c9b74eb721df679f38
MD5 243933d9f0508fd19896bae69ad4b9ec
BLAKE2b-256 aca708e9d5aee45f6cd7370b214f853fdecf2942c4107df674e806ba52f68ae5

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page