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 → nd_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.0.1.tar.gz (38.2 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.0.1-cp311-abi3-manylinux_2_34_aarch64.whl (222.2 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.34+ ARM64

File details

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

File metadata

  • Download URL: nd_image_codecs-0.0.1.tar.gz
  • Upload date:
  • Size: 38.2 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.0.1.tar.gz
Algorithm Hash digest
SHA256 f4b45e3702324e6a72b6b569f3dc8944071457754a868dfa82d7c85208a35a56
MD5 25e03424e558f1abfe473063e59dbef4
BLAKE2b-256 0f401fb60a1284866cbe7b89d6d7113d18488991b952c35afa3a0a98c04bb052

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nd_image_codecs-0.0.1-cp311-abi3-manylinux_2_34_aarch64.whl
Algorithm Hash digest
SHA256 bd6b989e6417f383ad5861f2db0f0ffdc3ced134e87e4535c2b36405e6a32d9f
MD5 de3bdde1281a2edc05e9b1aca797536a
BLAKE2b-256 4a346ccbdd2c4bd32bc6eae173fa5971fcf0e18277e11c4dd8e905d2f1ec3415

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