Skip to main content

Convert nd2 to zarr

Project description

zarr-tools

Convert nd2 to zarr

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.4.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

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

zarr_tools-0.4.4-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zarr-tools-0.4.4.tar.gz
  • Upload date:
  • Size: 6.7 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.4.tar.gz
Algorithm Hash digest
SHA256 0822e686fa574184ec4eb65408dbb9bd17ff2d9252eefb272e096c77b0180919
MD5 0ee26717a314224daf65e1222004eaa8
BLAKE2b-256 3bcee9135ff80c1e0842999d0c024b3dc6b578504d29576411ed4bac0bb1c2ce

See more details on using hashes here.

File details

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

File metadata

  • Download URL: zarr_tools-0.4.4-py3-none-any.whl
  • Upload date:
  • Size: 5.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b34719fa532a907f500b356d87de702c0b11dd166064ab5ebd842ffea8fec48d
MD5 01d7fa9fd64815464a571d91ca512c22
BLAKE2b-256 eb693c4f6706b5c17921f3b6be8fd8a193a9e1671c114008830356050fefb2b3

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