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
- open command line terminal
- install poetry tool for dependency management and packaging: https://pypi.org/project/poetry/
- switch to the tif_to_zarr directory:
cd PATH_TO_DIRECTORY/tif_to_zarr
- install python dependencies:
poetry install
- 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
- 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
- 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.5.tar.gz
(4.5 kB
view hashes)
Built Distribution
Close
Hashes for tif_to_zarr-0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 902dce8461fe540f2704c45408109d60a67ed74b77ba1a8525d4f0700c30d66b |
|
MD5 | 590b967e920ea0f67118286a84164af3 |
|
BLAKE2b-256 | 9f8b0d37b79838de2fcd392f3c8fdbc56b9be05bad38097d12c991616047f2af |