Skip to main content

Convert nd2 to zarr

Project description

zarr-tools

Convert nd2 to zarr

License PyPI Python Version tests codecov

Installation

pip install zarr-tools

Usage

As command line

python -m zarr-tools file.nd2

This will produce the zarr dataset with default 5 steps of binning for xy dimensions.

As python module

import nd2
import zarr_tools

data = nd2.ND2File("input.nd2").to_dask()
zarr_tools.convert.to_zarr(
    data,
    channel_axis=1,
    path="output.zarr", 
    steps=4, 
    name=['BF','TRITC'], 
    colormap=['gray','green'],
    lut=((1000,30000),(440, 600)),
)

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

zarr-tools-0.4.5.tar.gz (7.1 kB view details)

Uploaded Source

Built Distribution

zarr_tools-0.4.5-py3-none-any.whl (5.4 kB view details)

Uploaded Python 3

File details

Details for the file zarr-tools-0.4.5.tar.gz.

File metadata

  • Download URL: zarr-tools-0.4.5.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for zarr-tools-0.4.5.tar.gz
Algorithm Hash digest
SHA256 fb445815036f4992074492019f728949286995b6cb4a52906989aa70f23e1329
MD5 89f1008e4f10fdf078fc5dc64efe6ea0
BLAKE2b-256 6e00ae8a8de1cf6269222eb512180c82f4574cae8e2d60b2a8e4616c50ac302a

See more details on using hashes here.

File details

Details for the file zarr_tools-0.4.5-py3-none-any.whl.

File metadata

  • Download URL: zarr_tools-0.4.5-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for zarr_tools-0.4.5-py3-none-any.whl
Algorithm Hash digest
SHA256 730f5bd012e82b9948849dcec426b767c4a5b5f156d478540827a010b5e9cbe8
MD5 43bf00447016f09f3c9c531fd902b424
BLAKE2b-256 047eeda632c94ab18d9718144de2b36a032577ed5195fb048408cddb21295c50

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page