DeepCube-org / uc3-public-notebooks

Notebooks accessing UC3 datasets
10 stars 2 forks source link

Accessing new version dataset via cloud-hosted datacube #2

Open Lavender517 opened 2 years ago

Lavender517 commented 2 years ago

Hi, can I ask how could I access the new version dataset, which extends the temporal data to 2021-08-29, via xarray using cloud-hosted datacube?

Thank you!

iprapas commented 2 years ago

Hi,

Thanks for raising this issue. I'll need to update the README about it. Until then, here you go:

import xarray as xr
import fsspec
import zarr
url = 'https://storage.de.cloud.ovh.net/v1/AUTH_84d6da8e37fe4bb5aea18902da8c1170/uc3/FireCube_time1_x1253_y983.zarr'
ds = xr.open_zarr(fsspec.get_mapper(url), consolidated=True)
Lavender517 commented 2 years ago

Thanks a lot!