openeo-python-client icon indicating copy to clipboard operation
openeo-python-client copied to clipboard

Load_stac, how to load ZARR assets using `bands` argument

Open dwest77a opened this issue 6 months ago • 2 comments

Hi, I'm looking into openEO client-side processing using a STAC catalog which contains various zarr assets. I can't seem to get load_stac to work with any given item because the asset type is not accepted, although I have noticed that the asset type can be supplied instead for the bands parameter in load_stac, but I'm not sure what the asset/mime type should be for zarr?

This refers to:

https://github.com/Open-EO/openeo-python-client/blob/master/openeo/local/connection.py#L235

https://github.com/Open-EO/openeo-processes-dask/blob/main/openeo_processes_dask/process_implementations/cubes/load.py#L154

https://github.com/gjoseph92/stackstac/blob/main/stackstac/prepare.py#L61

Thanks

dwest77a avatar Jul 08 '25 08:07 dwest77a

If this is not the correct approach, I would like to ask how it is suggested to obtain i.e an xarray representation of a given zarr dataset using openEO locally.

dwest77a avatar Jul 08 '25 11:07 dwest77a

Hi @dwest77a , thanks for the question! Could you provide me a sample Zarr (or the STAC Collection) you are using so that we can test it? Or maybe the code snippet directly.

clausmichele avatar Jul 18 '25 07:07 clausmichele