-
The ESA EOPF Sample Service has some examples for loading sample Zarr files.
What is the equivalent way to load this Zarr asset using obstore? I tried the following...
but I receive the following...
|
Beta Was this translation helpful? Give feedback.
Answered by
maxrjones
Jun 12, 2025
Replies: 1 comment
-
I haven't found time to dive into the EOPF Zarr data yet so I cannot say if this is the best way, but it will enable you to open an xarray dataset: import obstore as obs
import xarray as xr
from zarr.storage import ObjectStore
remote_product_path = "https://objectstore.eodc.eu:2222/e05ab01a9d56408d82ac32d69a5aae2a:sample-data/tutorial_data/cpm_v253/S2B_MSIL1C_20250113T103309_N0511_R108_T32TLQ_20250113T122458.zarr"
object_store = obs.store.HTTPStore.from_url(remote_product_path)
zarr_store = ObjectStore(object_store, read_only=True)
ds = xr.open_zarr(zarr_store, consolidated=True)
ds The object that you named |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
tylere
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I haven't found time to dive into the EOPF Zarr data yet so I cannot say if this is the best way, but it will enable you to open an xarray dataset:
The object that you named
zarr_store
is actually an obstore object rather than a zarr object (the names ar…