mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-03 08:01:25 +08:00
7c3164577e
This relies on the HDF5 capability to dynamically load compression filters. Note that a compression filter is just a subcase of filters. The primary user-visible changes are as follows: 1. Add a standard header "netcdf_filter.h" that defines the necessary API extensions 2. Modify ncgen to support two new special attributes "_Filter_ID" and "_Filter_Parameters" so that compression can be turned on when creating a file using ncgen. 4. Add a detailed description of filtering support to the user's guide; see the file filters.md 5. Add a test case directory for this: nc_test4/filter_test. It is fragile and a ./configure flags (-enable-filter-test) is defined (default disabled) to shut this off this test to avoid spurious 'make check' failures. Note that the HDF5 documentation is not up-to-date, so much of what is encoded here comes from examining the actual code in the file H5PL.c in the HDF5 source code.
25 lines
1008 B
C
25 lines
1008 B
C
/*********************************************************************
|
|
* Copyright 1993, UCAR/Unidata
|
|
* See netcdf/COPYRIGHT file for copying and redistribution conditions.
|
|
* $Header: /upc/share/CVS/netcdf-3/ncdump/cdl.h,v 1.3 2008/12/22 16:42:36 russ Exp $
|
|
*********************************************************************/
|
|
#ifndef _CDL_H_
|
|
#define _CDL_H_
|
|
|
|
/* Names of special performance-related virtual attributes for
|
|
* netCDF-4, displayed with "ncdump -s". ncdump and ncgen need to
|
|
* know these, as they are used in CDL. */
|
|
#define NC_ATT_FORMAT "_Format"
|
|
#define NC_ATT_CHECKSUM "_Fletcher32"
|
|
#define NC_ATT_CHUNKING "_ChunkSizes"
|
|
#define NC_ATT_ENDIANNESS "_Endianness"
|
|
#define NC_ATT_DEFLATE "_DeflateLevel"
|
|
#define NC_ATT_SHUFFLE "_Shuffle"
|
|
#define NC_ATT_STORAGE "_Storage"
|
|
#define NC_ATT_NOFILL "_NoFill"
|
|
#define NC_ATT_NETCDF4 "_NetCDF4"
|
|
#define NC_ATT_FILTERID "_Filter_ID"
|
|
#define NC_ATT_FILTERPARMS "_Filter_Parameters"
|
|
|
|
#endif /*_CDL_H_ */
|