Skip to main content

xaig

Light, framework-agnostic tooling for E3SM AI campaigns: what an emulator holds inside, sparse autoencoders trained on it, figures, and a local app over them.

Research tool. xaig is early. What is described here works; expect it to change.

Install

The base install pulls only Click. Anything heavier sits behind an extra named after the subpackage that needs it:

$ uv pip install 'xaig[daig]'     # or: pip install 'xaig[daig]'
Extra Pulls Gets you
daig numpy, xarray, netCDF4 xaig.daig: latent diagnostics on a grid
faig matplotlib, cartopy xaig.faig: maps and series figures (brings daig)
waig streamlit xaig waig: a local web app (brings faig)
taig torch xaig.taig and xaig taig: sparse autoencoders (brings daig)

A missing extra says so, with the command that fits how xaig was installed.

Try it, with no model and no data

A toy emulator writes a latent archive with nothing but numpy; everything else reads it like any other:

$ xaig daig latent toy scratch/toy/control
$ xaig daig latent info scratch/toy/control --mask-variable sst
$ xaig daig latent region scratch/toy/control --lat 10 --lon -114 --time 2 --centred --pcs 2
$ xaig daig latent fields scratch/toy/control --field precipitation --top 3
$ xaig taig sae scratch/toy/control --features 64 --k 4 --out scratch/toy/sae.npz   # needs xaig[taig]
$ xaig waig --latents scratch/toy                                                  # needs xaig[waig]

The CLI is a thin client of the Python API; anything it can do, a notebook can:

from xaig.daig.latent import Region, analyse_region, open_source

source = open_source("scratch/toy/control", mask_variable="sst")
result = analyse_region(
    source, time=2, layer=3, region=Region(lat=10, lon=-114, radius_km=1500), centred=True
)
result.ranking.channels  # the channels that respond most strongly there

More

BSD-3-Clause. xaig.daig.latent, xaig.faig and xaig.waig grew out of the latent space visualiser for weather models (Tempest, Beylich & Craig 2026, doi:10.1007/978-3-032-29915-4_10); see NOTICE.

Release files for xaig 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xaig 0.1.0
File Size Uploaded
xaig-0.1.0.tar.gz 99.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xaig 0.1.0
File Interpreter ABI Platform
xaig-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 179.9 kB

Release files / xaig-0.1.0.tar.gz

Download URL xaig-0.1.0.tar.gz
Size 99.4 kB
Tags Source
SHA-256 checksum
How to use checksums
0a216190f9876f2fcdb941b2439c08049d278375290e19da893c4ef045cf353c
BLAKE2b-256 checksum
How to use checksums
58eec7e1c28c75646523f7ee09a2a1372bdac71a954201a0783f56ed48dbb6b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Release files / xaig-0.1.0-py3-none-any.whl

Download URL xaig-0.1.0-py3-none-any.whl
Size 80.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e26f78b5ba857f4e3a0eceffd5633178b9f291f6aa8cd159b5e10c6d5c05b15a
BLAKE2b-256 checksum
How to use checksums
feda4edb494432f625e33f30a5129a3010c77b0f07e11a3fba3cd22e2987a4b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release 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