Setup and local builds
Requirements
- Python ≥ 3.14 with uv.
uv synccreates.venvwith NumPy and thexuepywheel. Always run Python as.venv/bin/python; the Makefile picks it automatically. - GDAL ≥ 3.8 with the GRIB driver. Needed by
XUE_ENCODER=python, by the satellite fetch stage (gdalwarp,gdal_translate,gdalbuildvrt) whichever encoder converts, and by the tests. The native encoder inspects inputs through the wheel’s own GDAL. - zstd ≥ 1.5 comes with the standard library (
compression.zstd); no CLI. - Node.js ≥ 22.
- A Rust toolchain and
wasm-pack(the browser decoder,make wasm). - eccodes:
grib_setrepacks ECMWF open data (CCSDS-packed) togrid_simpleat fetch time;bufr_dumpdecodes the tropical cyclone and sounding BUFR. - om2nc,
ifshresonly: reads Open-Meteo’s.omfiles and writes the NetCDF series the encoders ingest. It is GPL-2.0-only and stays a subprocess: nothing in this tree imports, links or vendors it, and no om dependency may enterpyproject.toml,Cargo.tomlorweb/. Install a pinned release (the publish workflow checks its sha256) or setXUE_OM2NCto the command. - jma-radar,
jmaonly:uv pip install git+https://github.com/ringsaturn/jma-radar, orXUE_JMA_RADAR. - Optional dependency groups:
uv sync --group zarr(tests, reading a delta store),--group satellite(Dust RGB / DEBRA producers and the FCI plugin),--group cma(the CMA archive reader),--group aurora. - Credentials:
XUE_CMA_ARCHIVEplus theR2_*pair forcma;EUMETSAT_CONSUMER_KEY/EUMETSAT_CONSUMER_SECRETformeteosat. - AWS CLI v2 and
jqfor publishing only.
make check verifies versions and commands, and reports which encoder a
build would take. The native encoder from source (make encoder-rust)
also needs libclang.
web/src/wasm/ is generated and gitignored: run make wasm before the
frontend typechecks or builds.
Building a run
Step by step (--model takes any id in docs/sources.md;
--hours defaults to the whole published axis):
XUE_ENCODER:auto(default; the wheel when installed),native(fail without it) orpython(the reference pipeline). Both produce identical bytes.--hoursmay be any hour on the model’s axis.build-bin(andshowcase build) writes every bundle into the run’s shared storebundles.zarr/straight from the codes, with--xueeach bundle’s.xuecontainer beside it from the same codes; the reduced tiers (bundles.half.zarr/, plus.quarteron satellites and the 0.1° grids) and a first-frame poster.--skip-variantsturns the tiers off. The pressure family gets no poster: contours need exact codes.- A vector bundle (
wind10m,wind850,qflux850, …) is added only when its components were fetched;--force-downloadre-fetches. - Overwriting an existing manifest needs
--force(make mvp FORCE=--force).
Raw inputs live in data/raw/, published data in web/public/data/, the
static build in dist/. All of it is gitignored.
The frontend locally
npm run dev serves the shell with Vite. The dev server has no Range
support, so streaming stores are exercised through npm run build and
make serve. The basemap key is origin-locked to localhost (not
127.0.0.1): browse http://localhost:4173 to see real tiles.