tensogram-sz3
High-level safe Rust API for SZ3 error-bounded lossy compression.
This crate is a clean-room reimplementation of the public surface of
the sz3 crate (v0.4.3), backed by tensogram-sz3-sys instead of
sz3-sys. It is suitable for compressing floating-point scientific
arrays with tight error bounds.
Usage
use ;
let data: = .map.collect;
let dimensioned = build.dim?.remainder_dim?;
let compressed = compress?;
let : = decompress?;
# Ok::
For full control, use compress_with_config with a Config:
use ;
let config = new;
# let dimensioned: DimensionedData =
# build.dim?.remainder_dim?;
let compressed = compress_with_config?;
# Ok::
Installation
Documentation
- Full documentation: https://sites.ecmwf.int/docs/tensogram/main/
- Repository: https://github.com/ecmwf/tensogram
License
Copyright 2026- European Centre for Medium-Range Weather Forecasts (ECMWF).
Licensed under the Apache License, Version 2.0. See LICENSE for details.