8 releases
| 0.4.3+SZ3-3.3.2 | Dec 9, 2025 |
|---|---|
| 0.4.2+SZ3-3.3.2 | Nov 25, 2025 |
| 0.3.0+SZ3-3.2.2 | Jan 8, 2025 |
| 0.2.0+SZ3-3.2.1 | Dec 9, 2024 |
| 0.1.1+SZ3-3.1.8.1 | May 28, 2024 |
#229 in Compression
53 downloads per month
Used in numcodecs-sz3
220KB
4.5K
SLoC
sz3-rs
High level bindings to the SZ3 lossy floating point compressor.
Usage
use sz3::{compress_with_config, decompress, Config, DimensionedData, ErrorBound, SZ3Error};
fn main() -> Result<(), SZ3Error> {
let data = vec![0.0_f32; 64 * 64 * 64];
let data = DimensionedData::build(&data)
.dim(64)?
.dim(64)?
.remainder_dim()?;
let config = Config::new(ErrorBound::Absolute(0.02));
let compressed = compress_with_config(&data, &config)?;
let decompressed = decompress::<f32, _>(compressed)?;
Ok(())
}
Dependencies
~2.7–5.5MB
~99K SLoC