mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-21 08:39:46 +08:00
9f461848b5
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 #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 #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.
27 lines
763 B
Makefile
27 lines
763 B
Makefile
# This is part of Unidata's netCDF package. Copyright 2018-2022,
|
|
# see the COPYRIGHT file for more information.
|
|
|
|
# Build the HDF5 dispatch layer.
|
|
|
|
# Ed Hartnett
|
|
|
|
# Get AM_CPPFLAGS.
|
|
include $(top_srcdir)/lib_flags.am
|
|
libnchdf5_la_CPPFLAGS = ${AM_CPPFLAGS}
|
|
|
|
# This is our output. The HDF5 convenience library.
|
|
noinst_LTLIBRARIES = libnchdf5.la
|
|
|
|
# The source files.
|
|
libnchdf5_la_SOURCES = nc4hdf.c nc4info.c hdf5file.c hdf5attr.c \
|
|
hdf5dim.c hdf5grp.c hdf5type.c hdf5internal.c hdf5create.c hdf5open.c \
|
|
hdf5var.c nc4mem.c nc4memcb.c hdf5dispatch.c hdf5filter.c \
|
|
hdf5set_format_compatibility.c hdf5debug.c hdf5debug.h hdf5err.h
|
|
|
|
if ENABLE_BYTERANGE
|
|
libnchdf5_la_SOURCES += H5FDhttp.c H5FDhttp.h
|
|
endif
|
|
|
|
# Package this for cmake build.
|
|
EXTRA_DIST = CMakeLists.txt
|