-
Notifications
You must be signed in to change notification settings - Fork 265
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
HDF5 1.10 Compatibility w/ netCDF4 #250
Comments
From some initial testing, it looks like the ninth byte of the Superblock (the version number of the superblock) has been changed with 1.10: With version 1.8.15-patch1, the int value is 2. The first 8 bytes have stayed the same. What does a superblock of 3 mean? Well, so far it's not documented, but at least it got incremented. |
It appears there is a compatibility mode in HDF5 1.10 for writing downward compatible netcdf-4 files. Would someone please confirm my interpretation of the release documentation? Please read under "Obtaining, Testing, and Experimenting with This Software" on this page: https://www.hdfgroup.org/HDF5/docNewFeatures/ Files will be written in the older format if these two conditions are met:
--Dave |
@Dave-Allured That is a good catch; I was hoping there would be something like that available once I'd had time for proper lit review. I'll need to do some testing to determine the exact behavior of |
I've created a new branch, |
I've got a tentative fix in place that anecdotally appears to work. Will have to do further tests but will try to have this out and in a proper release very quickly.
|
The base issue is fixed and merged into master. @DennisHeimbigner is working on a patch which inserts metadata into the file (as a special attribute) which records the version of libhdf5 used to write the file. Once that is done, we'll roll out the 4.4.1-rc1 release, and I'll close out this issue. Leaving it open for now as a discussion hub. |
Please close this issue #250. This was resolved by release 4.4.1 on 2016 June 28, "quite a while ago". Heh heh. This does not need to show up on Milestone:Future in 2019 February. ;-) |
With the release of HDF5 1.10, we are faced with a couple issues. First and foremost,
netcdf4
files written using the1.10
library (compiled with or without 1.10 API, it makes no matter) cannot be read by alibnetcdf
compiled against HDF5 1.8.x. This has serious implications for the Unidata datastreams, so long as there are nodes using1.8
trying to read data generated by nodes using1.10
.The full changes from HDF5 1.8 to 1.10 can be found here, at the time of this writing:
The API compatibility report may be found here:
49.2% incompatibility!
It appears that there may be command line tools (
5hformat_convert
) for re-writing the index data so that 1.10 generated files can be read by 1.8, but lit review is required to determine if this is true. There is also a new function that is listed as "yet to be documented", e.g.H5[D/F]format_convert
.This issue is opened to track progress on how we mitigate these changes for our user community.
The text was updated successfully, but these errors were encountered: