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
Release history Release notifications | RSS feed
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.2.tar.gz
(2.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file tif_to_zarr-0.2.tar.gz.
File metadata
- Download URL: tif_to_zarr-0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28a350d8c907cded0d037fecd5b90240ddf522ace7dab34dc394500694124839
|
|
| MD5 |
c7406be5105c207ce30c966a77479648
|
|
| BLAKE2b-256 |
3ae032076461fedb765b25060f76ad8679c4f6d5f4f79707e31bb4b3e5c6cae6
|
File details
Details for the file tif_to_zarr-0.2-py3-none-any.whl.
File metadata
- Download URL: tif_to_zarr-0.2-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.10.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff9ea9a5f3161b870b59ac9f90984c75415fd0da95e51143471bd04801d7faa5
|
|
| MD5 |
65437ba281e52b682365790d1eac37dc
|
|
| BLAKE2b-256 |
0ab63975a3f20e244538da9e5246f7dd31e1ce0ad68062e9462e80d23a230a80
|