netcdf-c/libdap4
Dennis Heimbigner f3e711e2b8 Add support for setting HDF5 alignment property when creating a file
re: https://github.com/Unidata/netcdf-c/issues/2177
re: https://github.com/Unidata/netcdf-c/pull/2178

Provide get/set functions to store global data alignment
information and apply it when a file is created.

The api is as follows:
````
int nc_set_alignment(int threshold, int alignment);
int nc_get_alignment(int* thresholdp, int* alignmentp);
````

If defined, then for every file created opened after the call to
nc_set_alignment, for every new variable added to the file, the
most recently set threshold and alignment values will be applied
to that variable.

The nc_get_alignment function return the last values set by
nc_set_alignment.  If nc_set_alignment has not been called, then
it returns the value 0 for both threshold and alignment.

The alignment parameters are stored in the NCglobalstate object
(see below) for use as needed. Repeated calls to nc_set_alignment
will overwrite any existing values in NCglobalstate.

The alignment parameters are applied in libhdf5/hdf5create.c
and libhdf5/hdf5open.c

The set/get alignment functions are defined in libsrc4/nc4internal.c.

A test program was added as nc_test4/tst_alignment.c.

## Misc. Changes Unrelated to Alignment

* The NCRCglobalstate type was renamed to NCglobalstate to
  indicate that it represented more general global state than
  just .rc data.  It was also moved to nc4internal.h.  This led
  to a large number of small changes: mostly renaming. The
  global state management functions were moved to nc4internal.c.

* The global chunk cache variables have been moved into
  NCglobalstate.  As warranted, other global state will be moved
  as well.

* Some misc. problems with the nczarr performance tests were corrected.
2022-01-29 15:27:52 -07:00
..
CMakeLists.txt Significantly Improve Amazon S3 Cloud Storage Support 2021-09-27 18:36:33 -06:00
d4bytes.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4bytes.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4chunk.c Improve operation of the DAP4 code and fix bugs 2021-05-21 20:46:56 -06:00
d4chunk.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4curlflags.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4curlfunctions.c Significantly Improve Amazon S3 Cloud Storage Support 2021-09-27 18:36:33 -06:00
d4curlfunctions.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4cvt.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4data.c Allow optional use of libxml2 2021-11-01 22:37:05 -06:00
d4debug.c Improve operation of the DAP4 code and fix bugs 2021-01-14 21:39:08 -07:00
d4debug.h Fix some protocol differences between netcdf-c and the Hyrax server. 2020-05-30 17:36:25 -06:00
d4dump.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4file.c Add support for setting HDF5 alignment property when creating a file 2022-01-29 15:27:52 -07:00
d4fix.c Allow optional use of libxml2 2021-11-01 22:37:05 -06:00
d4http.c Improve operation of the DAP4 code and fix bugs 2021-05-21 20:46:56 -06:00
d4http.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4includes.h This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
d4mem.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4meta.c Allow optional use of libxml2 2021-11-01 22:37:05 -06:00
d4odom.c Spelling fixes 2019-09-18 08:03:01 -06:00
d4odom.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4parser.c Support MSYS2/Mingw platform 2021-12-23 22:18:56 -07:00
d4printer.c Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4read.c Improve operation of the DAP4 code and fix bugs 2021-05-21 20:46:56 -06:00
d4read.h Improve operation of the DAP4 code and fix bugs 2021-01-14 21:39:08 -07:00
d4swap.c Allow optional use of libxml2 2021-11-01 22:37:05 -06:00
d4util.c Merge branch 'master' into dap4fixes2.dmh 2021-06-01 14:11:39 -06:00
d4util.h Updated copyright stanza in libdap4 2018-12-06 14:24:28 -07:00
d4varx.c Improve operation of the DAP4 code and fix bugs 2021-05-21 20:46:56 -06:00
Makefile.am Allow optional use of libxml2 2021-11-01 22:37:05 -06:00
ncd4.h Fix various problem around VLEN's 2022-01-08 18:30:00 -07:00
ncd4dispatch.c Add complete bitgroom support to NCZarr 2022-01-24 15:22:24 -07:00
ncd4dispatch.h removed NC from open in dispatch table 2019-08-01 14:30:20 -06:00
ncd4types.h Improve operation of the DAP4 code and fix bugs 2021-05-21 20:46:56 -06:00