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

Dave allured format compat on reopen #2193

Merged
merged 6 commits into from
Jan 21, 2022

Conversation

WardF
Copy link
Member

@WardF WardF commented Jan 21, 2022

This is @Dave-Allured 's PR #2176 but with the recently-added OSX checks in place, as a proof of concept.

Dave-Allured and others added 5 commits January 7, 2022 18:34
This commit selects the best HDF5 format compatibility options when re-opening an existing netCDF-4 file for writing, such as appending, or adding new groups or variables.

The general objective is to make netCDF-4 files that can be read and written by all previous library  versions.  Optimal HDF5 v1.8 compatibility is selected whenever possible.  Otherwise this falls back to the adequate v1.6 compatibility.

Format compatibility is a transient property of the HDF5 library, rather than baked in at file creation time.  Therefore, compatibility options must be re-selected every time a netCDF-4 file is re-opened for writing.

This builds on the previous update for initial file creation, PR Unidata#1931, by @brtnfld, released in netcdf-c version 4.8.1.

In particular, this commit moves compatibility controls into a single central location, a new common function that is shared by both create and open functions.

For more details, see issue Unidata#951, also documentation at the top of libhdf5/hdf5set_format_compatibility.c.

This commit also makes several corrections and cleanups to previous comments about the use of related property lists.
@WardF WardF added this to the 4.9.0 milestone Jan 21, 2022
@WardF WardF self-assigned this Jan 21, 2022
@WardF
Copy link
Member Author

WardF commented Jan 21, 2022

Sorting out why the OSX-specific github actions aren't running.

@WardF WardF merged commit 850c4e8 into Unidata:main Jan 21, 2022
@WardF WardF deleted the Dave-Allured-format-compat-on-reopen branch January 21, 2022 17:33
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

Successfully merging this pull request may close these issues.

2 participants