Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Zarr tile source. #1350

Merged
merged 1 commit into from
Oct 30, 2023
Merged

Add a Zarr tile source. #1350

merged 1 commit into from
Oct 30, 2023

Conversation

manthey
Copy link
Member

@manthey manthey commented Oct 27, 2023

This mostly reads omezarr (ome-ngff).

If you have a zarr directory, you can convert it to a single file via code like:

import zarr

zarrsrc = zarr.open(<input directory>)
zarrstore = zarr.storage.SQLiteStore(<output path>)
zarrdest = zarr.open(store=zarrstore, mode='w')
zarr.copy_all(zarrsrc, zarrdest)

The input directory should have a .zgroup file in it. The output directory is a sqlite3 db file, so perhaps is suffix should be .db or .zarr. This also works with zipped zarr directories.

@manthey manthey force-pushed the zarr branch 12 times, most recently from eb280cd to be556dc Compare October 29, 2023 19:00
@manthey manthey marked this pull request as ready for review October 29, 2023 19:52
This mostly reads omezarr (ome-ngff).
@manthey manthey merged commit a60f88c into master Oct 30, 2023
7 checks passed
@manthey manthey deleted the zarr branch October 30, 2023 02:53
@manthey manthey mentioned this pull request Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant