ome / omero-ms-zarr

Experimental micro-service for implementing the Zarr spec over HTTP
https://www.openmicroscopy.org/omero
GNU General Public License v2.0
17 stars 12 forks source link

scripts: add scale.py #61

Closed joshmoore closed 4 years ago

joshmoore commented 4 years ago

Simple script to enable downsampling a Zarr array.

joshmoore commented 4 years ago

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 commented 4 years ago

Closing in favor of https://github.com/ome/ome-zarr-py/pull/45

cc: @erindiel