Commit Graph

7933 Commits

Author SHA1 Message Date
Ward Fisher
907e300e3e Merge remote-tracking branch 'origin/master' into gh1983.wif 2021-07-08 14:52:23 -06:00
Ward Fisher
2ba84ea2b3
Merge pull request #2028 from Unidata/gh2027.wif
Fix in support of https://github.com/Unidata/netcdf-c/issues/2027
2021-07-06 12:14:36 -06:00
Ward Fisher
b6c3568ec0 Fix in support of https://github.com/Unidata/netcdf-c/issues/2027 2021-07-06 11:34:30 -06:00
Ward Fisher
e89b29c332
Merge pull request #2005 from DennisHeimbigner/dap4fixes2.dmh
Improve operation of the DAP4 code and fix bugs
2021-06-28 16:34:07 -06:00
Ward Fisher
8e3b74669c
Merge branch 'master' into dap4fixes2.dmh 2021-06-28 16:34:00 -06:00
Ward Fisher
e8303135bd
Merge pull request #2015 from gsjaardema/patch-48
Simply version check logic
2021-06-28 14:18:42 -06:00
Ward Fisher
b71f939895
Merge pull request #2001 from edwardhartnett/ejh_test
improved program nc_perf/tst_gfs_data_1.c
2021-06-28 14:06:03 -06:00
Ward Fisher
1a7ee7170a
Merge pull request #1972 from catenacyber/ossfuzz
Adds fuzz target for oss-fuzz integration
2021-06-17 14:32:48 -06:00
Ward Fisher
64eb7af64f Merge branch 'master' into gh1983.wif 2021-06-16 16:34:23 -06:00
Ward Fisher
b09461754f Turn verbose output on in nc_test. 2021-06-16 16:34:06 -06:00
Ward Fisher
cd39b9d2d8
Merge pull request #2019 from Unidata/gh2018.wif
Fixes portability issue with how echo was used in a shell script
2021-06-11 12:09:42 -06:00
Ward Fisher
ad11c54a79 Added a temporary fix in support of https://github.com/Unidata/netcdf-c/issues/2018. Also, fixed a missing reference file when using cmake-based build systems. 2021-06-09 15:55:11 -06:00
Ward Fisher
5b04247d71
Merge pull request #2016 from gsjaardema/patch-49
Clean up curl symbol tests
2021-06-08 16:26:03 -06:00
Ward Fisher
1ee604a3a7
Merge pull request #2017 from DennisHeimbigner/zarrfillv.dmh
NCZarr is outputting fill value as an array instead of a singleton.
2021-06-07 11:58:32 -06:00
Dennis Heimbigner
6f03935de4 Update release notes 2021-06-05 14:15:11 -06:00
Dennis Heimbigner
1c3e86440e NCZarr is outputting fill value as an array instead of a singleton.
re: https://github.com/Unidata/netcdf-c/issues/2008

The fill_value key in a .zarray should have a single value,
but it currently has a value that is a 1 element array.
Fix is to pull out the single element.

This occurred because the fill_value is taken from the _FillValue attribute,
and all netcdf attributes are stored as arrays, of length 1 in this case.

In a related change, any attribute with length 1 is now stored in .zattrs
as a singleton rather than an array of length 1. This make the generated
Zarr more consistent with other Zarr implementations.

Misc. other changes:

1. Fix bug in testpathcvt caused by the way various shells handle backslash escapes.
2. Fix bug in testauth where test for MSVC is wrong.
2021-06-05 14:12:21 -06:00
Greg Sjaardema
4a18f6b54e
Remove a debug print 2021-06-02 12:55:50 -06:00
Greg Sjaardema
31f0c80ade
Remove a debug print 2021-06-02 12:55:36 -06:00
Greg Sjaardema
477c4de95b
Clean up curl symbol tests
* Set `CMAKE_REQUIRED_INCLUDES` to include the path found for `curl.h`.  The `CHECK_C_SOURCE_COMPILES` function uses this and not the `INCLUDE_DIRECTORIES`

* Make the test for version 7.66 or later match the same test in `configure.ac`
* If the version is 7.66 or later, then we can skip the tests for the curl symbols which were all added in versions prior to 7.66.
* If the version is earlier than 7.66, then continue to perform the tests.
2021-06-02 12:54:05 -06:00
Greg Sjaardema
e755a08f11
Simply version check logic
We use the CMake `VERSION_LESS` test other places, might as well use it here and  eliminate another compile-based test.
2021-06-02 11:40:01 -06:00
Dennis Heimbigner
4bf58c65dd fix conflicts 2021-06-02 10:59:26 -06:00
Ward Fisher
94262989eb
Merge pull request #1991 from gsjaardema/eliminate_need_for_hdf5-1.6-API
Remove need for HDF5-1.6 API being defined
2021-06-01 16:36:28 -06:00
Ward Fisher
384e77d9fe
Merge pull request #2012 from DennisHeimbigner/dimscope.dmh
Regularize the scoping of dimensions
2021-06-01 16:28:12 -06:00
Ward Fisher
7446311dfd
Merge pull request #2014 from Unidata/fix-makedist.wif
Another PR to fix 'make distcheck' issues that had crept in.
2021-06-01 15:26:23 -06:00
Ward Fisher
cab3743568 Added missing file. 2021-06-01 15:05:42 -06:00
Ward Fisher
c41f7943cb
Merge branch 'master' into dimscope.dmh 2021-06-01 14:12:04 -06:00
Ward Fisher
e21ef7bcb0
Merge branch 'master' into dap4fixes2.dmh 2021-06-01 14:11:39 -06:00
Ward Fisher
a1f8145038
Merge pull request #2011 from DennisHeimbigner/authfix.dmh
Re-enable DAP2 authorization tests
2021-06-01 14:09:50 -06:00
Ward Fisher
b0f85f41df
Merge branch 'master' into authfix.dmh 2021-06-01 14:09:43 -06:00
Ward Fisher
bc98720e3c Merge branch 'master' into fix-makedist.wif 2021-06-01 13:55:30 -06:00
Ward Fisher
64fa63a774 Clean up stray file that was fouling make distcheck 2021-06-01 13:55:10 -06:00
Ward Fisher
82271ff612
Merge pull request #1998 from DennisHeimbigner/mktmp.dmh
Fix bug with windows version of mkstemp that causes failure to create more than 26 temp files
2021-06-01 12:58:23 -06:00
Dennis Heimbigner
cfa935967f Fix conflicts 2021-06-01 12:45:30 -06:00
Dennis Heimbigner
412e4078d8 Revert action triggers 2021-05-31 16:06:17 -06:00
Dennis Heimbigner
c707d1d413 Update Release Notes 2021-05-31 15:54:11 -06:00
Dennis Heimbigner
ec5b3f9a4f Regularize the scoping of dimensions
This is a follow-on to pull request
````https://github.com/Unidata/netcdf-c/pull/1959````,
which fixed up type scoping.

The primary changes are to _nc\_inq\_dimid()_ and to ncdump.

The _nc\_inq\_dimid()_ function is supposed to allow the name to be
and FQN, but this apparently never got implemented. So if was modified
to support FQNs.

The ncdump program is supposed to output fully qualified dimension names
in its generated CDL file under certain conditions.

Suppose ncdump has a netcdf-4 file F with variable V, and V's parent group
is G. For each dimension id D referenced by V, ncdump needs to determine
whether to print its name as a simple name or as a fully qualified name (FQN).

The algorithm is as follows:

1. Search up the tree of ancestor groups.
2. If one of those ancestor groups contains the dimid, then call it dimgrp.
3. If one of those ancestor groups contains a dim with the same name as the dimid, but with a different dimid, then record that as duplicate=true.
4. If dimgrp is defined and duplicate == false, then we do not need an fqn.
5. If dimgrp is defined and duplicate == true, then we do need an fqn to avoid incorrectly using the duplicate.
6. If dimgrp is undefined, then do a preorder breadth-first search of all the groups looking for the dimid.
7. If found, then use the fqn of the first found such dimension location.
8. If not found, then fail.

Test case ncdump/test_scope.sh was modified to test the proper
operation of ncdump and _nc\_inq\_dimid()_.

Misc. Other Changes:
* Fix nc_inq_ncid (NC4_inq_ncid actually) to return root group id if the name argument is NULL.
* Modify _ncdump/printfqn_ to print out a dimid FQN; this supports verification that the resulting .nc files were properly created.
2021-05-31 15:51:12 -06:00
Dennis Heimbigner
069a542725 Add backslash escape option to pathcvt and test 2021-05-30 16:16:25 -06:00
Dennis Heimbigner
a99afdefc6 Add backslash escape option to pathcvt and test 2021-05-30 16:12:40 -06:00
Dennis Heimbigner
1bb482dbae Update RELEASE NOTES 2021-05-29 21:57:06 -06:00
Dennis Heimbigner
e632d02041 Re-enable DAP2 authorization tests
The thredds-test server now has some password protected datasets
that can be used to test DAP2 authorization support.
The general location is
````
https://thredds.ucar.edu/thredds/tdscapabilities/authTest.html
````
and specifically:
````
https://thredds.ucar.edu/thredds/dodsC/test3/testData.nc.html
````

This PR replaces old testcases with ncdap_test/testauth.sh.
This testcase allows us to test use of the .dodsrc file and .netrc file
and embedded user+pwd.

As part of this, I had to create a program (ncdap_test/pathcvt.c)
that is essentially the equivalent to cygpath. Given a path in
windows, unix, msys or cygwin format, it converts it to the
equivalent format in one of those four cases.  So it can be used
to convert a cygwin path to a windows path, for example. This is
needed in testpathcvt and testauth to make sure that the paths
in .daprc (e.g. the reference to .netrc) are of the proper
format.

Misc. Other Changes:
1. Fix some memory leaks in libdap2
2. Setting the env variable CURLOPT_VERBOSE allows tracking of curl
   operations.
3. Make tst_charvlenbug be conditional on NC_VLEN_NOTEST.
2021-05-29 21:30:33 -06:00
Dennis Heimbigner
3c5740dde5 sigh 2021-05-29 21:17:52 -06:00
Dennis Heimbigner
fe16d0884f final 2021-05-29 20:51:09 -06:00
Dennis Heimbigner
67df42a536 converted 2021-05-29 19:50:41 -06:00
Dennis Heimbigner
b95d2302b5 pathcvtadd 2021-05-29 17:14:16 -06:00
Dennis Heimbigner
2cb7f4768b pathcvt 2021-05-29 16:52:41 -06:00
Dennis Heimbigner
c361c1056d update file permission 2021-05-29 16:40:38 -06:00
Dennis Heimbigner
42a9360f9a charvlen 2021-05-28 21:53:12 -06:00
Dennis Heimbigner
74793520b2 szip 2021-05-28 14:27:22 -06:00
Dennis Heimbigner
571c9b4323 merge 2021-05-28 13:09:16 -06:00
Greg Sjaardema
e2d0bbb8ea
Merge branch 'master' into eliminate_need_for_hdf5-1.6-API 2021-05-28 07:11:13 -06:00