Skip to main content

CFT Zarr codecs for 12-bit fluorescence and RGB compression

Project description

CFT Zarr Custom Codecs

Custom codecs for Zarr v3 optimized for CFT (Cryo-Fluorescence Tomography) data storage.

Codecs

Chunked JPEG Codec (cft_zarr.chunked_jpeg)

Efficient lossy compression for RGB images using chunked JPEG encoding.

  • Purpose: Compress RGB images in chunks of N slices (default: 4) with JPEG compression
  • Chunk Shape: Configurable, default (4, 512, 512, 3) for RGB
  • Quality: Configurable JPEG quality (0-100, default: 85)

Usage

from cft_zarr.chunked_jpeg import ChunkedJPEGCodec
import zarr

# Create codec
codec = ChunkedJPEGCodec(quality=85, chunk_shape=(4, 512, 512, 3))

# Use with Zarr array
arr = zarr.open_array(
    'rgb.zarr',
    mode='w',
    shape=(100, 512, 512, 3),
    chunks=(4, 512, 512, 3),
    dtype='uint8',
    codec=codec
)

Installation

cd src/python/public/cft_zarr
poetry install

Project details


Download files

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

Source Distribution

cft_zarr-0.0.2.tar.gz (14.7 kB view details)

Uploaded Source

Built Distribution

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

cft_zarr-0.0.2-py3-none-any.whl (21.9 kB view details)

Uploaded Python 3

File details

Details for the file cft_zarr-0.0.2.tar.gz.

File metadata

  • Download URL: cft_zarr-0.0.2.tar.gz
  • Upload date:
  • Size: 14.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/25.0.0

File hashes

Hashes for cft_zarr-0.0.2.tar.gz
Algorithm Hash digest
SHA256 44ac2359b1923e11dcc9be503cca0cb823d2d35c4e05f4aa68a8cf88768b67ab
MD5 92bf490be741fbaf2af6deb3d2cb0031
BLAKE2b-256 28b771f15cc84f216ce78c61d918b52c3ebf58513d7ac127a21b6c78d048da35

See more details on using hashes here.

File details

Details for the file cft_zarr-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: cft_zarr-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 21.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.3 CPython/3.13.3 Darwin/25.0.0

File hashes

Hashes for cft_zarr-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 820962da3b59d09170abf45a0105bcda4bbf57f408a6200cda7f8ec7f44712a2
MD5 c2e272e2b1741bd48a2c95cfbd22b76a
BLAKE2b-256 beb6f2a3b1d9a7dfc33144690af8aaef5f3563c9d27c2d7fc1a176956b0a0823

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 Pingdom Monitoring Sentry Error logging StatusPage Status page