This script could be used for conversion of a .tiff file to .zarr format with OME-NGFF multiscales metadata structure.
- open command line terminal
- install tif_to_zarr
pip install tif_to_zarr
- run script using cli:
tif_to_zarr --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:
tif_to_zarr --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:
tif_to_zarr --help