Open lnicola opened 2 years ago
I traced this until somewhere in ZarrBackendEntrypoint
. StoreBackendEntrypoint
seems to report Access Denied, but if I call ZarrBackendEntrypoint.open_dataset()
I get the conversion error. It might be related to the ZarrStore.open_groups
parameters.
What happened:
I have a Zarr dataset on S3 that probably has wrong ACLs set on its time data chunks.
zarr
correctly complains about not being able to read it, butxarray
tries to convert uninitialized memory to dates.This seems specific to S3, I couldn't reproduce it with a local dataset. Sorry for missing a MCVE, but S3 makes this non-trivial.
Anything else we need to know?:
Notice the different
time
values:zarr
reports the error correctly:Environment:
Output of xr.show_versions()
``` INSTALLED VERSIONS ------------------ commit: None python: 3.9.7 (default, Oct 10 2021, 15:13:22) [GCC 11.1.0] python-bits: 64 OS: Linux OS-release: 5.14.14-arch1-1 machine: x86_64 processor: byteorder: little LC_ALL: None LANG: en_GB.UTF-8 LOCALE: ('en_GB', 'UTF-8') libhdf5: 1.12.1 libnetcdf: None xarray: 0.19.0 pandas: 1.3.3 numpy: 1.21.2 scipy: 1.7.1 netCDF4: None pydap: None h5netcdf: None h5py: 3.5.0 Nio: None zarr: 2.10.2 cftime: 1.5.1 nc_time_axis: None PseudoNetCDF: None rasterio: None cfgrib: None iris: None bottleneck: None dask: 2021.09.0 distributed: None matplotlib: 3.4.3 cartopy: None seaborn: None numbagg: None pint: None setuptools: 57.4.0 pip: 20.3.4 conda: None pytest: None IPython: 7.28.0 sphinx: None ```