Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incompatible netCDF4 version #60

Open
Torminator opened this issue Jun 22, 2017 · 2 comments
Open

Incompatible netCDF4 version #60

Torminator opened this issue Jun 22, 2017 · 2 comments

Comments

@Torminator
Copy link

There seems to be a problem with the compatibility of netCDF4 (version >= 1.2.3) and h5py.
So in cube.update() netCDF4 is used to write the images but xarray uses h5py to read the files.
H5py can not read files written by netCDF4 (version >= 1.2.3).

h5py/h5py#719

@Torminator
Copy link
Author

For some reasons netCDF4 version 1.2.2 installed by conda does not work. But with the version 1.2.1 I am able to write nc files which xarray can read. (to use netCDF4 1.2.1 - python 3.5 or lower is required)

@hans-permana
Copy link
Contributor

I encountered similar thing when performing a performance test.

What I observed was that with netcdf4 v1.2.4 from default channel (without specifying the channel name), there is no compatibility issue with the h5py when reading the file. However, when netcdf v1.2.4 from conda-forge channel, I observed the error.

# works
# conda install netcdf4=1.2.4
h5netcdf                  0.3.1                    py36_0    conda-forge
h5py                      2.7.0               np112py36_0
hdf4                      4.2.12                   vc14_0  [vc14]  conda-forge
hdf5                      1.8.15.1                 vc14_4  [vc14]
libnetcdf                 4.3.3.1                  vc14_5  [vc14]
netcdf4                   1.2.4               np112py36_0
xarray                    0.9.6                    py36_0    conda-forge
# does not work
# conda install -c conda-forge netcdf4=1.2.4
h5netcdf                  0.3.1                    py36_0    conda-forge
h5py                      2.7.0               np112py36_0    conda-forge
hdf4                      4.2.12                   vc14_0  [vc14]  conda-forge
hdf5                      1.8.17                  vc14_11  [vc14]  conda-forge
libnetcdf                 4.4.1.1                  vc14_4  [vc14]  conda-forge
netcdf4                   1.2.4               np112py36_3    conda-forge
xarray                    0.9.6                    py36_0    conda-forge

From these, it seems that there are differences in dependency requirement for netcdf4 in conda-forge and in default channel. In particular, the version of hdf5 and libnetcdf are different.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants