multiscale-spatial-image icon indicating copy to clipboard operation
multiscale-spatial-image copied to clipboard

Reading OME-Zarr into Xarray

Open ianhi opened this issue 1 month ago • 2 comments

Hi,

I'm curious what your plans are regarding reading OME-Zarr files into Xarray? It seems like this package currently only implements to to_multiscale and to_zarr functinoality.

I was playing around with making an xarray backend to wrok for ome-zarr files so you could just xr.open_zarr("some-name.ome.zarr") and ended up going a bit farther than I intended and ended up with this project https://github.com/ianhi/xarray-ome?tab=readme-ov-file#xarray-ome

which makes use of @thewtex's ngff-zarr

I'd love to not duplicate effort on ome-zarr <-> xarray so reaching out about this. It currently seems like there are slightly different goals we have. Please correct me if I'm wrong on the below

Xarray-ome:

  • Strictly ome-zarr into or out of xarray
  • no in memory manipulations (e.g. generate multiscales)

Xarray-multiscales:

  • converting in memory objects into ome-zarr compatible datatrees
  • writing datatree to ome-zarr

ianhi avatar Nov 13 '25 21:11 ianhi

@ianhi amazing work!! 💖 👏 Yes, I think we have the same mission and should avoid duplicated effort. Let's find a time to chat.

thewtex avatar Nov 14 '25 10:11 thewtex

Yes @ianhi, yes!

bogovicj avatar Nov 14 '25 15:11 bogovicj