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

netCDF zlib compression problem with netCDF4 >= 1.6.0 #106

Open
1 task done
ghiggi opened this issue Oct 26, 2022 · 1 comment
Open
1 task done

netCDF zlib compression problem with netCDF4 >= 1.6.0 #106

ghiggi opened this issue Oct 26, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@ghiggi
Copy link
Collaborator

ghiggi commented Oct 26, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

With the current implementation, there is no problem writing netCDF4 as long as the netCDF4 package version is <1.6.0.

With netCDF4>=1.6.0, the zlib: True field of the encoding dictionary is not accepted anymore.
With netCDF4>=1.6.0, the field has to be changed with compression="zlib" . This a back-ward incompatibility.

Expected Behavior

The code has to be adapted to the netCDF version in order to not restrict the netCDF package version!

Relevant docs:

@ghiggi ghiggi added the bug Something isn't working label Oct 26, 2022
@ghiggi ghiggi self-assigned this Oct 26, 2022
@ghiggi
Copy link
Collaborator Author

ghiggi commented Oct 31, 2022

Need to wait for an upstream change in xarray: pydata/xarray#6929 and pydata/xarray#6981

@ghiggi ghiggi changed the title [BUG] netCDF zlib compression problem with netCDF4 >= 1.6.0 netCDF zlib compression problem with netCDF4 >= 1.6.0 Nov 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant