VC-Delta3D
VC-Delta3D compresses three-dimensional uint8, uint16, int8 and int16
scalar fields, and multi-channel chunks whose channels are such fields.
It combines optional bounded scalar quantization, a choice of two predictors
(an axis-adaptive delta filter or a per-chunk linear predictor), and order-0
rANS entropy coding.
Encoded chunks use the self-describing D3D1 wire format and the Zarr
compressor identifier vc-delta3d.
Since 0.2.0, multi-channel chunks (a channel axis first or last) are stored as
a format-version-2 container of one ordinary payload per channel, so each
channel's spatial field is coded on its own. Signed integers are coded as
their bytes (the delta filter wraps modulo 2^8/2^16), so they must stay
lossless (quant=1). Decoders before 0.2.0 cannot read version-2 containers;
single-field payloads are unchanged in both directions.
Compression methods
Each chunk is predicted from its already decoded voxels, and the prediction residuals are entropy-coded with order-0 rANS. The predictor is chosen when encoding and recorded in every chunk, so decoding needs no configuration.
- Delta (default,
predictor="delta", C++vc_delta3d::Predictor::Delta): a Lorenzo delta filter. Each voxel is coded as its difference from its neighbours along the z, y and x axes; for 8-bit fields the encoder picks the subset of axes per chunk. Works for every supported type. The faster method. - LPC (
predictor="lpc", C++vc_delta3d::Predictor::Lpc): a per-chunk least-squares linear predictor. The encoder picks 40 of the 62 causal neighbours in the 5x5x5 box and fits their weights. The method that compresses best. LPC can be used for uint8 data in chunks of at least 16^3 voxels; other chunks are stored with the delta filter. Introduced in version 0.2.0.
Either method can be preceded by quantization (quant, unsigned types only):
a bin width of 2k+1 bounds the per-voxel error by +-k, and 1 is lossless. In
multi-channel chunks the method applies to every channel. In zarr metadata the
codec reads e.g. {"id": "vc-delta3d", "quant": 1, "predictor": "lpc"}; the
predictor key is omitted for delta.
C++
#include <vc_delta3d/codec.hpp>
auto encoded = vc_delta3d::compress(bytes, {z, y, x}, element_size);
auto decoded = vc_delta3d::decompress(encoded, bytes.size());
// Best compression (uint8):
auto smaller = vc_delta3d::compress(bytes, {z, y, x}, 1, vc_delta3d::kQuantizationLossless,
vc_delta3d::Predictor::Lpc);
// Multi-channel, e.g. a (z, y, x, c) chunk of embeddings:
auto packed = vc_delta3d::compressChannels(bytes, {z, y, x}, c,
vc_delta3d::ChannelLayout::Last, element_size);
auto restored = vc_delta3d::decompress(packed, bytes.size());
CMake consumers can link vc_delta3d::vc_delta3d.
Python
from vc_delta3d import Delta3D
codec = Delta3D(quant=1)
encoded = codec.encode(array)
decoded = codec.decode(encoded)
# Best compression (uint8):
codec = Delta3D(predictor="lpc")
# 4D chunks with a channel axis ("first" or "last"); int8/int16 must stay lossless.
codec = Delta3D(channel_axis="last")
On real 64- and 32-channel int8 embedding chunks (unit vectors with per-vector scales), the channel container reaches 4.0x and 3.9x versus 1.1x for Zstd on the interleaved bytes.
Importing vc_delta3d registers vc-delta3d with numcodecs.
Build
cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=Release
ninja -C build
ctest --test-dir build --output-on-failure
Performance
Size
Full PHercMANBp volume (2.399um 78keV masked, 17148x12577x12577 uint8, 128^3 chunks, lossless):
| level 0 | all 6 levels | |
|---|---|---|
| uncompressed | 85.60 GB | 102.49 GB |
| delta filter | 27.12 GB (3.16x) | 33.22 GB (3.09x) |
| LPC | 22.11 GB (3.87x) | 27.54 GB (3.72x) |
Uncompressed sizes are the stored chunks of the published volume; the mask leaves chunks outside the scroll unstored.
On 2.4um level-0 chunks (63 from PHercParis4, 14 from PHerc0841), the delta filter compresses 2.72x and 2.93x, LPC 3.43x and 3.91x.
Delta filter on the whole of
s3://vesuvius-challenge-open-data/PHercParis4/volumes/20260411134726-2.400um-0.2m-78keV-masked.zarr/5:
2.30 GiB raw to 471.70 MiB, 5.00x (19.99% of raw).
Speed
Single core, MB/s of uint8 voxels, 63 PHercParis4 2.4um level-0 chunks (128^3),
on AWS .2xlarge instances (GCC 12) and one laptop:
| instance | CPU | decode delta | decode LPC | encode delta | encode LPC |
|---|---|---|---|---|---|
| c6g | Graviton2 | 408 | 151 | 193 | 46 |
| c7g | Graviton3 | 575 | 253 | 288 | 73 |
| c8g | Graviton4 | 730 | 299 | 344 | 90 |
| c9g | Graviton5 | 943 | 392 | 441 | 114 |
| c6a | Zen3 | 524 | 289 | 210 | 70 |
| c7a | Zen4 | 556 | 318 | 223 | 75 |
| c5 | Cascade Lake | 395 | 212 | 180 | 53 |
| c6i | Ice Lake | 442 | 247 | 186 | 60 |
| c7i | Sapphire Rapids | 556 | 334 | 252 | 82 |
| c8i | Granite Rapids | 588 | 344 | 281 | 89 |
| laptop | Ryzen 7 4800H (Zen2), fixed 2.9 GHz | 415 | 215 | 175 | 52 |
x86 decoding uses AVX2 when the CPU has it (selected at run time) and SSE2 otherwise (LPC decoding about 1.4x slower than with AVX2). Encoded bytes are identical on every platform.
License
MIT, see LICENSE.
Metadata
Release files for vc-delta3d 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| vc_delta3d-0.2.0.tar.gz | 51.0 kB | With provenance | Details for vc_delta3d-0.2.0.tar.gz |
Built distributions (wheels)
Total release size: 1.8 MB
Release files / vc_delta3d-0.2.0.tar.gz
| Download URL | vc_delta3d-0.2.0.tar.gz |
|---|---|
| Size | 51.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a9af20ed68a92d9d8cfffe4f72bfc820acd5eb3c50c7c79db0594186b3d3c87
|
|
BLAKE2b-256 checksum How to use checksums |
b88c2652137ca2b2c132735db2d2e7530cb2433023b4fc5dcc0f6da64e097bfc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / vc_delta3d-0.2.0-cp314-cp314-win_amd64.whl
| Download URL | vc_delta3d-0.2.0-cp314-cp314-win_amd64.whl |
|---|---|
| Size | 307.7 kB |
| Tags | CPython 3.14 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
072880e96db7e5dc02b9ce645ffa902bf9f7c07ed1668fd97587e8d5faf6bb38
|
|
BLAKE2b-256 checksum How to use checksums |
f560a758d3c654f23bbe5cd289b6bb9fadd52a690bc9b0f16699e7a1e68e6210
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / vc_delta3d-0.2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | vc_delta3d-0.2.0-cp314-cp314-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 97.8 kB |
| Tags | CPython 3.14 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
10014635b4ae0a8cabe2fc2f6aedea98f5dc1ba2652824d716f1c3f733308f17
|
|
BLAKE2b-256 checksum How to use checksums |
002cc86aac08a7d4eaaed727e36f834d6e2b75d9ed643d9174f9d7d59265d4f6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / vc_delta3d-0.2.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | vc_delta3d-0.2.0-cp314-cp314-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 92.2 kB |
| Tags | CPython 3.14 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
24bef4e1b563af7eb4e32023d6442748a89f3b79432e2b78e73aa0d46dd5e3ce
|
|
BLAKE2b-256 checksum How to use checksums |
c6057551aba065b5db53f323c39b71eb7af49bfd4e411c5fd0a306a7f2ee6bd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / vc_delta3d-0.2.0-cp314-cp314-macosx_11_0_arm64.whl
| Download URL | vc_delta3d-0.2.0-cp314-cp314-macosx_11_0_arm64.whl |
|---|---|
| Size | 81.9 kB |
| Tags | CPython 3.14 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
b02e1f82ae6fa740da81907fd9124b98115c95e566a0a2bc90f0664a04e83ba2
|
|
BLAKE2b-256 checksum How to use checksums |
7a8606db18bf8ccb357d63d10343e91862509649cf02c979d0668422e0ec5627
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / vc_delta3d-0.2.0-cp313-cp313-win_amd64.whl
| Download URL | vc_delta3d-0.2.0-cp313-cp313-win_amd64.whl |
|---|---|
| Size | 298.5 kB |
| Tags | CPython 3.13 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
01953e4ff46bf97bb3128c7eb02733f3860f9a0adddf30559673bb8d58aeccf1
|
|
BLAKE2b-256 checksum How to use checksums |
7ac8cf28cbcd8101a0001269a97c6bcebaca34a0b587b130de71b017eeebd026
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / vc_delta3d-0.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | vc_delta3d-0.2.0-cp313-cp313-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 97.8 kB |
| Tags | CPython 3.13 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
3bd2161cb989ac434a7249cecac3e9860691322863d21ba5f52a3969b51cfc2b
|
|
BLAKE2b-256 checksum How to use checksums |
dca09d0d271f1c65d4db7936c9e29e7b91cb768859d046345c7c3bd03d605457
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / vc_delta3d-0.2.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | vc_delta3d-0.2.0-cp313-cp313-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 92.1 kB |
| Tags | CPython 3.13 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
cdd25c21ad5878aa1e156cb12f705532d15709e65cf07641189bd7553f1a073c
|
|
BLAKE2b-256 checksum How to use checksums |
0e8c7112a42d27a0e88bf45eca455a995f11182c62c5457241ac7c6e2b9375e8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / vc_delta3d-0.2.0-cp313-cp313-macosx_11_0_arm64.whl
| Download URL | vc_delta3d-0.2.0-cp313-cp313-macosx_11_0_arm64.whl |
|---|---|
| Size | 81.7 kB |
| Tags | CPython 3.13 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
2a7ef734cb86c05b64f1ce74440af49b8f8cf0512de1a917f3087f3da7388c74
|
|
BLAKE2b-256 checksum How to use checksums |
5de5cd7b13d2da828e132aa08bb2f905b55b4e54bf4c4f63f19ce40ba2f89538
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / vc_delta3d-0.2.0-cp312-cp312-win_amd64.whl
| Download URL | vc_delta3d-0.2.0-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 298.5 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
79e6c7ca539043b8fd299e581e495fa4c691ee247cc13ec8b502820ef734e07d
|
|
BLAKE2b-256 checksum How to use checksums |
272024ea429f2dce50e09a9ebc5e252a9d1ad9e98fa0ea3f6b2ddcb2d5c9a623
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / vc_delta3d-0.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl
| Download URL | vc_delta3d-0.2.0-cp312-cp312-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl |
|---|---|
| Size | 97.9 kB |
| Tags | CPython 3.12 Linux glibc 2.27+ x86-64 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
d961dbb03eff2b77bfd69ffec7cd6581f4327184419e4508ab42e25dd25f6475
|
|
BLAKE2b-256 checksum How to use checksums |
97b54415640d8a7710db2fa51a1260249821fd06b70e8e87301a86b0fb3b3108
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / vc_delta3d-0.2.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl
| Download URL | vc_delta3d-0.2.0-cp312-cp312-manylinux_2_26_aarch64.manylinux_2_28_aarch64.whl |
|---|---|
| Size | 92.1 kB |
| Tags | CPython 3.12 Linux glibc 2.26+ ARM64 Linux glibc 2.28+ ARM64 |
|
SHA-256 checksum How to use checksums |
14efe32ecd1e669fa292d1abfd3cc97fe52af08b7415c7de94a7dac3cd35323f
|
|
BLAKE2b-256 checksum How to use checksums |
e4bdd4a0fdb54b032ca8f71f5c5999875b6965b9040a98b95388a514962523d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logRelease files / vc_delta3d-0.2.0-cp312-cp312-macosx_11_0_arm64.whl
| Download URL | vc_delta3d-0.2.0-cp312-cp312-macosx_11_0_arm64.whl |
|---|---|
| Size | 81.7 kB |
| Tags | CPython 3.12 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
a72887781b5f957d748e6431e4c2d27cc7481df09b9b6afb9bb4a22e472de26b
|
|
BLAKE2b-256 checksum How to use checksums |
be7a7fbd1a3908677c21e058afd7d500a70d6ffb07ddded072143e37e9948322
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logSecurity for vc-delta3d 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 13 files in this release have been uploaded with provenance metadata.
Attestation for vc_delta3d-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 22, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.