netcdf-c/nc_test4
Dennis Heimbigner 11fe00ea05 Add filter support to NCZarr
Filter support has three goals:

1. Use the existing HDF5 filter implementations,
2. Allow filter metadata to be stored in the NumCodecs metadata format used by Zarr,
3. Allow filters to be used even when HDF5 is disabled

Detailed usage directions are define in docs/filters.md.

For now, the existing filter API is left in place. So filters
are defined using ''nc_def_var_filter'' using the HDF5 style
where the id and parameters are unsigned integers.

This is a big change since filters affect many parts of the code.

In the following, the terms "compressor" and "filter" and "codec" are generally
used synonomously.

### Filter-Related Changes:
* In order to support dynamic loading of shared filter libraries, a new library was added in the libncpoco directory; it helps to isolate dynamic loading across multiple platforms.
* Provide a json parsing library for use by plugins; this is created by merging libdispatch/ncjson.c with include/ncjson.h.
* Add a new _Codecs attribute to allow clients to see what codecs are being used; let ncdump -s print it out.
* Provide special headers to help support compilation of HDF5 filters when HDF5 is not enabled: netcdf_filter_hdf5_build.h and netcdf_filter_build.h.
* Add a number of new test to test the new nczarr filters.
* Let ncgen parse _Codecs attribute, although it is ignored.

### Plugin directory changes:
* Add support for the Blosc compressor; this is essential because it is the most common compressor used in Zarr datasets. This also necessitated adding a CMake FindBlosc.cmake file
* Add NCZarr support for the big-four filters provided by HDF5: shuffle, fletcher32, deflate (zlib), and szip
* Add a Codec defaulter (see docs/filters.md) for the big four filters.
* Make plugins work with windows by properly adding __declspec declaration.

### Misc. Non-Filter Changes
* Replace most uses of USE_NETCDF4 (deprecated) with USE_HDF5.
* Improve support for caching
* More fixes for path conversion code
* Fix misc. memory leaks
* Add new utility -- ncdump/ncpathcvt -- that does more or less the same thing as cygpath.
* Add a number of new test to test the non-filter fixes.
* Update the parsers
* Convert most instances of '#ifdef _MSC_VER' to '#ifdef _WIN32'
2021-09-02 17:04:26 -06:00
..
bm_chunking.c
bm_radar.c
bzip2.cdl
cdm_sea_soundings.c
clear_cache.sh
CMakeLists.txt Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
findplugin.in Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
h5testszip.c Fix for use with szip and also 1.8.21 2021-04-28 15:42:02 -06:00
Makefile.am Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
ref_any.cdl Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
ref_bzip2.c This PR adds EXPERIMENTAL support for accessing data in the 2020-06-28 18:02:47 -06:00
ref_fillonly.cdl Fix error where not converting fill data 2020-09-12 14:49:59 -06:00
ref_filter_order_create.txt Add tests for filter order on read and write cases 2020-12-29 20:12:35 -07:00
ref_filter_order_read.txt Add tests for filter order on read and write cases 2020-12-29 20:12:35 -07:00
ref_filter_repeat.txt Add tests for filter order on read and write cases 2020-12-29 20:12:35 -07:00
ref_filtered.cdl Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
ref_filteredvv.cdl Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
ref_filterx_hdf5.txt Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
ref_hdf5_compat1.nc
ref_hdf5_compat2.nc
ref_hdf5_compat3.nc
ref_multi.cdl Add support for multiple filters per variable. 2020-02-16 12:59:33 -07:00
ref_nccopyF.cdl Add support for multiple filters per variable. 2020-02-16 12:59:33 -07:00
ref_ncgenF.cdl Add support for multiple filters per variable. 2020-02-16 12:59:33 -07:00
ref_szip.cdl
ref_szip.h5
ref_tst_compounds.nc
ref_tst_dims.nc
ref_tst_interops4.nc
ref_tst_xplatform2_1.nc
ref_tst_xplatform2_2.nc
ref_unfiltered.cdl
ref_unfilteredvv.cdl
renamegroup.c
run_empty_vlen_test.sh
run_grp_rename.sh
run_par_test.sh.in fixed warnings in tst_create_files.c 2020-06-30 10:40:05 -06:00
t_type.c
tdset.h5
test_fillonly.sh Fix error where not converting fill data 2020-09-12 14:49:59 -06:00
test_filter_misc.c Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
test_filter_order.c Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
test_filter_reg.c Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
test_filter_repeat.c Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
test_filter.c Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
test_filterx_hdf5.c Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
test_szip.c Add support for multiple filters per variable. 2020-02-16 12:59:33 -07:00
test_wrapper.in
tst_atts1.c
tst_atts2.c
tst_atts3.c
tst_atts_string_rewrite.c
tst_atts.c
tst_bug324.c
tst_bug1442.c
tst_camrun.c Improve operation of the DAP4 code and fix bugs 2021-05-21 20:46:56 -06:00
tst_charvlenbug.c Add test case 2021-04-16 16:12:53 -06:00
tst_chunks2.c
tst_chunks.c
tst_compounds2.c
tst_compounds3.c
tst_compounds.c
tst_converts2.c
tst_converts.c Revert "Revert "Fix nczarr-experimental: improve build support, disengage hdf5 vs netcdf4 flags, and find AWS libraries"" 2020-08-17 19:15:47 -06:00
tst_coords2.c
tst_coords3.c
tst_coords.c
tst_dims2.c Fix undefined references when using Visual Studio 2020-05-18 19:36:28 -06:00
tst_dims3.c more tests 2019-12-01 15:05:43 -07:00
tst_dims.c Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
tst_elatefill.c
tst_empty_vlen_unlim.c
tst_endian_fill.c
tst_enums.c
tst_files4.c
tst_files5.c
tst_files6.c
tst_files.c now dont return error on second redef call for netcdf/HDF5 files 2020-07-08 11:10:15 -06:00
tst_fill_attr_vanish.c Fix in support of https://github.com/Unidata/netcdf-c/issues/2027 2021-07-06 11:34:30 -06:00
tst_fillbug.c
tst_fillonly.c Mostly revert the filter code to reduce its complexity of use. 2020-09-27 12:43:46 -06:00
tst_fills2.c
tst_fills.c Fix undefined references when using Visual Studio 2020-05-18 19:36:28 -06:00
tst_filter.sh Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
tst_filterparser.c Mostly revert the filter code to reduce its complexity of use. 2020-09-27 12:43:46 -06:00
tst_grps2.c
tst_grps.c
tst_h5_endians.c
tst_h_converts.c Remove need for HDF5-1.6 API being defined 2021-04-28 13:59:24 -06:00
tst_h_refs.c
tst_h_scalar.c
tst_h_strbug.c Remove need for HDF5-1.6 API being defined 2021-04-28 13:59:24 -06:00
tst_h_strings3.c
tst_h_vl2.c Merge branch 'virtual_datasets' of https://github.com/d70-t/netcdf-c into gh1983.wif 2021-07-19 09:44:35 -07:00
tst_hdf5_file_compat.c
tst_interops4.c
tst_interops5.c Merge branch 'virtual_datasets' of https://github.com/d70-t/netcdf-c into gh1983.wif 2021-07-19 09:44:35 -07:00
tst_interops6.c Remove need for HDF5-1.6 API being defined 2021-04-28 13:59:24 -06:00
tst_interops_dims.c
tst_interops.c Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
tst_large2.c
tst_large3.c
tst_large5.c
tst_large.c
tst_misc.sh Re-enable DAP2 authorization tests 2021-05-29 21:30:33 -06:00
tst_mode.c fixed tst_mode to not attempt to set filters on scalars 2020-03-03 07:44:37 -07:00
tst_mpi_parallel.c
tst_multifilter.c Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
tst_nc4perf.c
tst_nc_converts.c
tst_opaques.c
tst_parallel3.c
tst_parallel4.c
tst_parallel5.c fixed warning in tst_parallel5.c 2020-07-08 12:24:48 -06:00
tst_parallel_compress.c fixed problem setting szip on var with unlimited dim and added test 2020-07-02 10:55:34 -06:00
tst_parallel_zlib.c start using par filters in HDF5-1.10.3 2020-01-17 14:01:07 -07:00
tst_parallel.c
tst_put_vars_two_unlim_dim.c
tst_put_vars.c
tst_rehash.c
tst_rename2.c
tst_rename3.c
tst_rename.c
tst_simplerw_coll_r.c
tst_specific_filters.sh Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
tst_strings2.c
tst_strings.c
tst_sync.c
tst_szip.sh Regularize the scoping of dimensions 2021-05-31 15:51:12 -06:00
tst_types.c
tst_udf.c Mostly revert the filter code to reduce its complexity of use. 2020-09-27 12:43:46 -06:00
tst_unlim_vars.c more checking in 3D test 2020-02-12 08:21:52 -07:00
tst_utf8.c
tst_v2.c
tst_varms.c
tst_vars2.c Disable varible rename test 2021-08-12 10:56:39 -06:00
tst_vars3.c Add filter support to NCZarr 2021-09-02 17:04:26 -06:00
tst_vars4.c Fix conflicts with master 2020-02-27 14:06:45 -07:00
tst_vars.c added demonstration of nc_def_var_deflate() issue 2020-05-07 07:08:52 -06:00
tst_varsperf.c
tst_virtual_datasets.c tst_virtual_datasets: add missing hdf5 close calls 2020-09-02 16:11:43 +02:00
tst_vl.c
tst_xplatform2.c Remove need for HDF5-1.6 API being defined 2021-04-28 13:59:24 -06:00
tst_xplatform.c