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

scripts: add scale.py #61

Closed
wants to merge 3 commits into from
Closed

scripts: add scale.py #61

wants to merge 3 commits into from

Conversation

joshmoore
Copy link
Member

Simple script to enable downsampling a Zarr array.

Simple script to enable downsampling a Zarr array.
@joshmoore
Copy link
Member Author

Updated the script to safely transfer labeled images (according to the current set of open PRs):

(cv) /opt/ebi-repo/6001247.zarr/labels /opt/omero-ms-zarr/src/scripts/scale.py --method=nearest 0 1 --labeled --copy-metadata
level 0 (1, 1, 257, 210, 253) = 49 labels
level 1 (1, 1, 257, 126, 105) 49
level 2 (1, 1, 257, 52, 63) 49
level 3 (1, 1, 257, 31, 26) 49
level 4 (1, 1, 257, 13, 15) 49
copying attribute keys: ['color', 'image']

I'll likely move forward with getting these on S3 for testing.

cc: @erindiel

joshmoore added a commit to joshmoore/ome-zarr-py that referenced this pull request Aug 26, 2020
Provides the `ome_zarr scale` CLI command as well as the
`ome_zarr.scale.Scaler` class for downsampling arrays as
multiscales.

originally: ome/omero-ms-zarr#61
@joshmoore
Copy link
Member Author

Closing in favor of ome/ome-zarr-py#45

cc: @erindiel

@joshmoore joshmoore closed this Aug 27, 2020
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