Skip to main content

Simple package to convert small tif files to zarr format.

Project description

This script could be used for conversion of a .tiff file to .zarr format with OME-NGFF multiscales metadata structure.

How to run

  1. open command line terminal
  2. install poetry tool for dependency management and packaging: https://pypi.org/project/poetry/
  3. switch to the tif_to_zarr directory: cd PATH_TO_DIRECTORY/tif_to_zarr
  4. install python dependencies: poetry install
  5. run script using cli: poetry run python src/tif_to_zarr.py --src=PATH_TO_SOURCE_DIRECTORY/input_file.tif --dest=PATH_TO_DEST_DIRECTORY/output_file.zarr
  6. to convert a tiff file to zarr with custom metadata values, you can run smthg similar to this: poetry run python3 src/tif_to_zarr.py --src=path_to_source_tif --dest=path_to_output_zarr -a x z y -t 1.0 2.0 3.0 -s 4.0 5.0 6.0 -u nanometer nanometer nanometer
  7. To get the list of options, you may run this: poetry run python3 src/tif_to_zarr.py --help

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

tif_to_zarr-0.3.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

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

tif_to_zarr-0.3-py3-none-any.whl (2.5 kB view details)

Uploaded Python 3

File details

Details for the file tif_to_zarr-0.3.tar.gz.

File metadata

  • Download URL: tif_to_zarr-0.3.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for tif_to_zarr-0.3.tar.gz
Algorithm Hash digest
SHA256 d293d659bf3a3c88dae7dd07778c96b073248abe299947df42a71080e795e41f
MD5 59141d796088c4721cb347f7bd5677b4
BLAKE2b-256 5e27566d9ddb185ac5c43f849aaf30034065527aa1735db95c580c99fa183eae

See more details on using hashes here.

File details

Details for the file tif_to_zarr-0.3-py3-none-any.whl.

File metadata

  • Download URL: tif_to_zarr-0.3-py3-none-any.whl
  • Upload date:
  • Size: 2.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.13

File hashes

Hashes for tif_to_zarr-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c4b0b07a2dad3b4cee1757e98faa83d42722639e3a9833fdc79859441f7b85b0
MD5 beeed03eacaab764fdb87239b61cd31b
BLAKE2b-256 7a54a200ba3b4f295ca0e3e60759861eae4a4d182a12bd03fa6403c6a17f2a64

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