mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-21 08:39:46 +08:00
65fd9fe1a5
re: https://github.com/Unidata/netcdf-c/issues/982 It is possible to define an enum type that has no enum constant with value zero. However, HDF5 has a default fill value of zero that it used to fill all chunks. In the event that this situation occurs, ncdump, say, will fail because there is no enum const to print for the value zero. The solution is to create a special enum constant called "_UNDEFINED" that has the value zero. It is only used in the case that there is no constant in the enum that already covers zero. A test case is added in netcdf-c/ncdump to validate this solution. Note: the changes occur primarily in libsrc4, so they also work for NCZarr. |
||
---|---|---|
.. | ||
CMakeLists.txt | ||
Makefile.am | ||
nc4attr.c | ||
nc4cache.c | ||
nc4dim.c | ||
nc4dispatch.c | ||
nc4filters.c | ||
nc4grp.c | ||
nc4internal.c | ||
nc4type.c | ||
nc4var.c | ||
ncfunc.c | ||
ncindex.c |