netcdf-c/ncgen
Dennis Heimbigner 2ea1cf5f1b There was a request to extend the provenance information
stored in the _NCProperties attribute to allow two things:
1. capture of additional library dependencies (over and above
   hdf5)
2. Recognition of non-netcdf libraries that create netcdf-4 format
   files.

To this end, the _NCProperties format has been extended to be
and arbitrary set of key=value pairs separated by commas.
This new format has version = 2, and uses commas as the pair separator.
Thus the general form is:
    _NCProperties = "version=2,key1=value,key2=value2..." ;

This new version is accompanied by a new ./configure option of the form
    --with-ncproperties="key1=value1,key2=value2..."
that specifies pairs to add to the _NCProperties attribute for all
files created with that netcdf library.

At this point, what is missing is some programmatic way to
specify either all the pairs or additional pairs
to the _NCProperties attribute. Not sure of the best way
to do this.

Builders using non-netcdf libraries can specify
whatever they want in the key value pairs (as long
as the version=2 is specified first).

By convention, the primary library is expected to be the
the first pair after the leading version=2 pair, but this
is convention only and is neither required nor enforced.

Related changes:
1. Fixed the tests that check _NCProperties to properly operate with version=2.
2. When reading a version 1 _NCProperties attribute, convert it to look
   like a version 2 attribute.
2. Added some version 2 tests to ncdump/tst_fileinfo.c and
   ncdump/tst_fileinfo.sh

Misc Changes:
1. Fix minor problem in ncdap_test/testurl.sh where a parameter to
   buildurl needed to be quoted.
2. Minor fix to ncgen to swap switches -H and -h to be consistent
   with other utilities.
3. Document the -M flag in nccopy usage() and the nccopy man page.
4. Modify a test case to use the nccopy -M flag.
2018-08-25 21:44:41 -06:00
..
bindata.c Cleanup ncgen memory management 2017-10-30 15:52:08 -06:00
bytebuffer.c Cleanup some ncgen memory problems 2017-10-31 14:03:57 -06:00
bytebuffer.h Resolve Lynton's vlen problems (partially) re: jira NCF-145 2012-02-14 00:25:32 +00:00
c0_4.cdl Tweaking cdl files so that we can compare against them. 2016-11-18 11:07:20 -07:00
c0.cdl Tweaking cdl files so that we can compare against them. 2016-11-18 11:07:20 -07:00
c5.cdl merge-squash 2015-10-09 10:12:11 -06:00
cdata.c support fixes for Github issue 323 2016-11-17 15:29:32 -07:00
cdfdata.c Cleanup ncgen memory management 2017-10-30 15:52:08 -06:00
CMakeLists.txt Cmake 2017-06-06 16:21:04 -06:00
cmldata.c removed executable permissions from all code files 2011-10-04 16:05:11 +00:00
compound_datasize_test2.cdl support fixes for Github issue 323 2016-11-17 15:29:32 -07:00
compound_datasize_test.cdl Reformated source cdl to allow for a diff test. 2016-11-16 10:57:36 -07:00
ctests.sh Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
cvt.c Merge remote-tracking branch 'origin/cleanncgen.dmh' into pr-aggregate.wif 2018-04-20 13:06:26 -06:00
data.c Cleanup some ncgen memory problems 2017-10-31 14:03:57 -06:00
data.h support fixes for Github issue 323 2016-11-17 15:29:32 -07:00
debug.c Fix missing return statement identified by lgtm 2018-04-23 10:54:44 -06:00
debug.h Cleanup ncgen memory management 2017-10-30 15:52:08 -06:00
depend moving to trunk subdir 2010-06-03 13:24:43 +00:00
dump.c [NCF-265] 2013-09-20 20:43:09 -06:00
dump.h Refactored 'Constant' to 'NCConstant' in ncgen/ to avoid 2013-07-16 20:22:48 +00:00
env Use short "-k" codes instead of deprecated version numbers for ncgen and nccopy tests 2014-12-28 22:42:05 -07:00
escapes.c Cleanup ncgen memory management 2017-10-30 15:52:08 -06:00
f77data.c support fixes for Github issue 323 2016-11-17 15:29:32 -07:00
foo.cdl Resolve Lynton's vlen problems (partially) re: jira NCF-145 2012-02-14 00:25:32 +00:00
ftests.sh Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
genbin.c Corrected a couple of potential memory related issues and an uninitialized variable issue. 2018-06-08 11:38:11 -06:00
genc.c 1. Keep up to date by merging master 2017-10-08 15:56:45 -06:00
genchar.c Cleanup ncgen memory management 2017-10-30 15:52:08 -06:00
gencml.c [NCF-265] 2013-09-20 20:43:09 -06:00
generate.c Cleanup ncgen memory management 2017-10-30 15:52:08 -06:00
generr.c Cleanup some ncgen memory problems 2017-10-31 14:03:57 -06:00
generr.h Addressed coverity issue 719941, missing varargs cleanup. 2016-07-06 15:41:49 -06:00
genf77.c re: Jira NCF-309 2014-09-18 18:26:06 -06:00
genj.c Cleaned up clang-reported issue: dead assignment. 2014-04-21 10:56:57 -06:00
genjjni.c Cleanup ncgen memory management 2017-10-30 15:52:08 -06:00
genjstd.c moving to trunk subdir 2010-06-03 13:24:43 +00:00
genlib.c Merge remote-tracking branch 'origin/cleanncgen.dmh' into pr-aggregate.wif 2018-04-20 13:06:26 -06:00
genlib.h Merge remote-tracking branch 'origin/cleanncgen.dmh' into pr-aggregate.wif 2018-04-20 13:06:26 -06:00
getfill.c Fix issues with Github pull request 187 2016-01-08 12:55:11 -07:00
includes.h 1. Keep up to date by merging master 2017-10-08 15:56:45 -06:00
internals.html Fix pull request https://github.com/Unidata/netcdf-c/pull/374 (dap4.dmh) 2017-04-03 21:39:44 -06:00
jdata.c support fixes for Github issue 323 2016-11-17 15:29:32 -07:00
jdatajni.c Cleanup ncgen memory management 2017-10-30 15:52:08 -06:00
jdatastd.c Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
jtests.sh Use short "-k" codes instead of deprecated version numbers for ncgen and nccopy tests 2014-12-28 22:42:05 -07:00
lfs-tests Fix pull request https://github.com/Unidata/netcdf-c/pull/374 (dap4.dmh) 2017-04-03 21:39:44 -06:00
list.c fix some coverity complaints 2014-04-07 13:00:47 -06:00
list.h Added MSVC-compatibility items. 2012-08-27 21:19:25 +00:00
main.c There was a request to extend the provenance information 2018-08-25 21:44:41 -06:00
Make0 Fix for Github issue 314. 2016-09-01 22:06:07 -06:00
Makefile.am merge master and resolve conflicts 2017-08-12 15:50:31 -06:00
makeparser.sh Swapped /bin/bash for /bin/sh to test on osx. 2018-08-12 23:01:08 -06:00
nc_iter.c Corrected a garbage-value error reported by Clang. 2013-11-22 13:48:30 -07:00
nc_iter.h added guards for header files that needed them 2018-01-17 09:20:20 -07:00
ncf199.cdl Updating ncgen run_nc4_tests.sh script to ensure that results are tested in addition to whether or not ncgen exited successfully. 2016-11-16 11:09:14 -07:00
ncf345.cdl Misc. source comment typos 2018-04-26 23:04:01 -04:00
ncgen.1 Fix spelling errors. 2016-08-28 15:45:36 +02:00
ncgen.h Misc. source comment typos 2018-04-26 23:04:01 -04:00
ncgen.l Merge branch 'master' into ejh_streq 2018-05-17 04:26:59 -06:00
ncgen.y Merge branch 'master' into ejh_streq 2018-05-17 04:26:59 -06:00
ncgenl.c Merge branch 'master' into ejh_streq 2018-05-17 04:26:59 -06:00
ncgeny.c Merge branch 'master' into ejh_streq 2018-05-17 04:26:59 -06:00
ncgeny.h changed macro STREQ to NCSTREQ to avoid name collusion with HDF4 library 2018-05-12 08:55:51 -06:00
odom.c Cleanup ncgen memory management 2017-10-30 15:52:08 -06:00
odom.h re: Jira NCF-309 2014-09-18 18:26:06 -06:00
ref_camrun.cdl Misc. source comment typos 2018-04-26 23:04:01 -04:00
run_tests2.sh Primary change: add dap4 support 2017-03-08 17:01:10 -07:00
semantics.c Re-Implement the nc_get/put_vars operations for netcdf-4 using the 2018-05-22 16:50:52 -06:00
tst_gattenum.cdl Apparently we have no .cdl test cases that have 2017-03-18 17:57:48 -06:00
tst_usuffix.cdl re: gihub issue https://github.com/Unidata/netcdf-c/issues/380 2017-03-24 18:56:14 -06:00
util.c Cleanup some ncgen memory problems 2017-10-31 14:03:57 -06:00
util.h Add provenance info for netcdf-4 files. 2016-05-07 14:32:07 -06:00
XGetopt.c Merge from latest netcdf-cmake branch. 2012-12-05 18:35:42 +00:00