Zero C Dependencies
Ships an embedded WMO parameter registry inside a self-contained wheel requiring only numpy and xarray.
Read GRIB1 and GRIB2 directly into NumPy and xarray, or write datasets back to GRIB2 with gribx.to_grib—with zero C library installs and zero .idx files.
Built to replace C library setup and sidecar index locks with self-contained Rust wheels.
Ships an embedded WMO parameter registry inside a self-contained wheel requiring only numpy and xarray.
Scans GRIB1 and GRIB2 headers directly in memory with lock-free multi-threaded decoding.
Verified max_abs = 0.0 across 5.53 Bi-Fourier, 5.1, 5.40000/5.40010, 5.50000–5.50002, up to 64-bit Simple/Complex, 5.40 JPEG2000, radar 3.120, and icosahedral 3.100.
Streams multi-GiB batches directly into preallocated NumPy buffers with minimal memory overhead.
Write GRIB1/GRIB2 via gribx.to_grib (simple ≤32b, complex/SPD, IEEE, 5.40 JPEG2000, PNG, CCSDS, spectral, log, RLE, submessage bundling) and decode specialized PDTs 4.51–4.91 with MARS Section 2 local metadata.
Rust-side filter_by_keys predicate pushdown (7.5× faster selective open), Dataset.sizes, GribJump slicing, HTTP Range from_chunks, Dask-aligned preferred_chunks, grid_spec()/vertical_coords(), and zero-subprocess gribx CLI.
Multi-grid GRIB archives (465 MiB to 3.63 GiB) on 26-core Intel Xeon Gold 5320 (Linux x86_64) with zero .idx files.
| Workload | gribx | cfgrib cold | cfgrib warm | Peak RSS | Speedup |
|---|---|---|---|---|---|
open_datasets · 3.63 GiB (4,392 msgs) |
2.61 s | 99.85 s | 68.87 s | 7.4 vs 8.0 GiB | 38.3× |
open_datasets · 1.82 GiB (2,196 msgs) |
1.47 s | 35.89 s | 17.42 s | 3.8 vs 4.1 GiB | 24.4× |
open_datasets · 465 MiB (549 msgs) |
0.64 s | 13.60 s | 6.97 s | 1.1 vs 1.2 GiB | 21.4× |
Raw decode · 465 MiB (549 msgs) |
0.09 s | 2.01 s | — | max_abs = 0.0 | 22.3× |
Drop-in xarray reading, multi-grid hypercube splitting, and native GRIB2 encoding.
Pure-Rust codecs for standard WMO grids, spectral harmonics, and compressed data sections.
Prebuilt wheels for macOS, Linux, and Windows. Only numpy and xarray required.
pip install gribx
Self-contained Rust wheel (~2 MiB) with embedded WMO & MARS tables — zero C libraries or external binaries required.
Explore API references, guides, and release wheels on Read the Docs and GitHub.