Skip to content

Xue documentation · xue.ringsaturn.me

Xue (雪)

Weather model runs, radar and satellite windows packed into Zarr v3 stores laid out for playback, and played back in the browser by a WebGL layer and a Rust/wasm decoder.

Under the viewer

The data the viewer plays is published as it is, for any other reader.

01 / DATA

Zarr v3 stores and a STAC catalog

◇ Every run, every field, as static files

  • Per-variable Zarr v3 stores, sharded for range reads: a tile of six frames, or one cell’s series.
  • A STAC catalog lists every source, and each source’s live pointer moves when a new run lands.
  • Read by HTTP Range from a CDN, with xarray or any Zarr v3 reader.
Python
import pystac, xarray as xr
cat = pystac.Catalog.from_file(
    "https://dataset.ringsaturn.me/xue/catalog.json")
run = next(cat.get_child("gfs").get_items())
ds = xr.open_zarr(run.assets["tmp2m"].get_absolute_href())

02 / API

Point API

◇ One grid cell’s series as JSON

  • /v1/point for the live run or a pinned one; radiosondes, METAR / TAF, storms and alerts beside it.
  • An OpenAPI 3.1 contract at /openapi.json.
  • Experimental, read-only, and the viewer does not depend on it.
curl
$ curl "https://xue-api.ringsaturn.me/v1/point?source=gfs\
&lat=35.7&lon=139.7&variables=tmp2m,wind10m"
# run, cell, times, and values per variable

03 / DECODERS

Decoders and building on Xue

◇ The viewer’s decoder, outside the viewer

  • The Rust crate xue, the Python wheel xuepy (import xue) and the wasm build the viewer runs.
  • The viewer shell can carry a site of your own, on your own data origin.
install
$ pip install xuepy
$ cargo add xue

Documentation

Specifications

The Zarr profile, bundle metadata, the legacy container, STAC, the registry and every point product. They win over the code.

Specifications

Developer documentation

How the encoder, the decoders and the shell are built, tested, published and released.

Developer documentation

Rust API

The rust/xue crate as it stands on main, ahead of the docs.rs release.

Rust API