Skip to content

Commit

Permalink
Improve comments about format compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave-Allured authored Jan 11, 2022
1 parent b3b0da9 commit 69b2d20
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
2 changes: 1 addition & 1 deletion libhdf5/hdf5create.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright 2003-2018, University Corporation for Atmospheric
/* Copyright 2003-2022, University Corporation for Atmospheric
* Research. See COPYRIGHT file for copying and redistribution
* conditions. */
/**
Expand Down
21 changes: 19 additions & 2 deletions libhdf5/hdf5set_format_compatibility.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,18 @@
* v1.6 compatibily is selected in a few strange cases when it is
* not possible to select v1.8.
*
* Files created with v1.6 compatibility have superblock version 0.
* Files created with v1.8 compatibility have superblock version 2.
* Files created or updated with v1.10 and higher compatibility are
* not legal netCDF-4 format, as of 2022 January. They are not
* readable by any netCDF library version linked with any HDF5 v1.8
* or older library version. However, it is possible for advanced
* or experimental software to deliberately override these default
* format settings, to create advanced format files for special
* purposes.
*
* Files created with v1.6 compatibility have superblock version 0.
* Files created with v1.8 compatibility have superblock version 2.
* Files created with v1.10 compatibility have superblock version 3,
* and are avoided by default. Et cetera.
*
* The superblock version is locked in when a file is first created.
* It is then possible to get a mix of v1.6 and v1.8 internal
Expand All @@ -36,6 +46,11 @@
*
* See netcdf-c github issues #250 and #951 for more details about
* the rationale and evolution of netCDF-4 format compatibility.
*
* See HDF5 documentation for H5Pset_libver_bounds and related RFC's,
* for more details about HDF5 file object versioning.
*
* @author Dave Allured, NOAA/PSL/CIRES @date 2022 January 11
*/

#include "config.h"
Expand All @@ -50,6 +65,8 @@
* be used in the next call to H5Fcreate or H5Fopen.
*
* @return ::NC_EHDFERR General failure in HDF5.
*
* @author Dave Allured, NOAA/PSL/CIRES @date 2022 January 11
*/
int
hdf5set_format_compatibility(hid_t fapl_id)
Expand Down

0 comments on commit 69b2d20

Please # to comment.