ValueError: variable has no dimension scale associated with axis 0 #8849
-
I want to read h5 data from my minio server, however it crashed again:
My version of xarray is So why it will happen and how to solve it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@forestbat You would need to add the suggested kwarg to the call to ds = xr.open_dataset(file, engine="h5netcdf", phony_dims="access") Reason is, that the provided h5-file does not declare dimension_scale for one or more variables ( that's a netcdf4 feature). The netcdf4 backend creates so called phony dimensions when reading the data. In h5netcdf we decided to let the user decide if this creation is done on variable access or in sorted manner when accessing the file. |
Beta Was this translation helpful? Give feedback.
Sorry, the kwarg name is
phony_dims
notphony_dim
. I've changed the above code.