Skip to main content

nd-image-codecs

Composable Zarr v3 codecs for ND scientific images — Python binding.

A family of Zarr v3 codecs that capture correlation along z, time, and channel axes explicitly — as ordinary, independently specified array-to-array and array-to-bytes codecs — then store the result with a fast entropy backend, High-Throughput JPEG 2000 (ISO/IEC 15444-15) coefficient planes, or ZFP blocks. Built for OME-Zarr / OME-NGFF.

No JPEG 2000 Part 2 (MCT) syntax anywhere — cross-axis decorrelation is an explicit Zarr codec, sidestepping Part 2 IP entirely.

The three codec families

codec_series assembles a series (pipeline) of Zarr v3 codecs from an array's axis metadata:

Family Series (pipeline) Built for
nd-delta transpose → numcodecs.delta → bitshuffle → zstd/lz4 Fast lossless storage from existing Zarr codecs only
nd-lift-ht transpose → nd_lift → htj2k Scalable microscopy & volume visualization
nd-zfp transpose → reshape → zfp GPU volume rendering, random access, fixed-rate memory

Install

pip install nd-image-codecs

Usage

from nd_image_codecs import codec_series

codecs = codec_series(["t", "c", "z", "y", "x"], [8, 1, 32, 256, 256],
                      "uint16", "nd-lift-ht")

The three codec classes (NdLift, Htj2k, NdZfp) register with zarr-python v3 through the zarr.codecs entry-point group, so pipelines produced by codec_series resolve by name.

Status

Pre-alpha. The codec_series builder is fully implemented and is cross-checked against the Rust and TypeScript implementations in CI. The codec encode/decode paths are scaffolds — they land across the six roadmap phases.

Links

License

MIT — Copyright (c) Fideus Labs LLC.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nd_image_codecs-0.1.0.tar.gz (229.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nd_image_codecs-0.1.0-cp311-abi3-manylinux_2_34_aarch64.whl (528.1 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.34+ ARM64

File details

Details for the file nd_image_codecs-0.1.0.tar.gz.

File metadata

  • Download URL: nd_image_codecs-0.1.0.tar.gz
  • Upload date:
  • Size: 229.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for nd_image_codecs-0.1.0.tar.gz
Algorithm Hash digest
SHA256 a5ad4cc4728f56b57e541a60f342d26e9de1e3eb588f2f6d07e1c1c5acd7da44
MD5 23a918ce898d886cb192f33ebe7858ba
BLAKE2b-256 43e07496c8125ea90af24e46b940dae2251f35018a02477446eb8ca96f693bc5

See more details on using hashes here.

File details

Details for the file nd_image_codecs-0.1.0-cp311-abi3-manylinux_2_34_aarch64.whl.

File metadata

File hashes

Hashes for nd_image_codecs-0.1.0-cp311-abi3-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 c93f3df264b227091b37d9c8065d48da3e48bc897c85f9c3a9f1419125b475d1
MD5 2c1e2e91344cad977e15a54bc56f24d2
BLAKE2b-256 a630cf4cb5bd7c08da9b4950e41b45c3ce89999ac51e82609dfeeeb4e1c14eb7

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page