Commit Graph

6510 Commits

Author SHA1 Message Date
Ed Hartnett
8c896f6dd7
Merge branch 'master' into ejh_relax 2019-01-15 05:31:15 -07:00
Ed Hartnett
151f0226f9 change to trigger CI 2019-01-14 13:26:52 -07:00
Ed Hartnett
383f1cbe32
Merge branch 'master' into ejh_coords_3 2019-01-11 15:28:47 -07:00
Ed Hartnett
f100da6f91
Merge branch 'master' into ejh_test_pnetcdf 2019-01-11 15:27:29 -07:00
Ed Hartnett
4c538d7a60
Merge branch 'master' into ejh_test_null_vars_stride 2019-01-11 15:27:01 -07:00
Ward Fisher
440a9e2ca4
Merge branch 'master' into ansifix.dmh 2019-01-10 13:36:19 -07:00
Ward Fisher
fa7012b9c1
Merge branch 'master' into feature/add-autogen-sh 2019-01-10 11:02:42 -07:00
Thomas Braun
6dd734c780 Add autogen.sh script for helping novice users
For novice autotools users it is convenient to have just a script to
execute.
2019-01-10 02:07:10 +01:00
Ward Fisher
b65bd9fca5 Turning off fortran tests again for now. 2019-01-08 16:40:33 -07:00
Ward Fisher
f323a5fec9 Modified cmake configuration file in support of https://github.com/Unidata/netcdf-c/issues/1253 2019-01-08 16:37:33 -07:00
Thomas Braun
531df26af0 CMakeLists.txt: Fix compilation with default settings on debian stretch
Since 209c31d3 (Bringing config.h as generagted by cmake in line with config.h as generated by autotools., 2017-01-27)
we check that we can find the hdf5.h main include file.

But this file may reside in non-standard location so we have to search
in HDF5_INCLUDE_DIR as well.
2019-01-05 14:27:45 +01:00
Greg Sjaardema
1ab53924cb
Tests on equalp are always true
If `equalp` is NULL, then the function returns early, so all subsequent tests on `equalp` are not needed.
2019-01-04 17:39:48 -07:00
Ed Hartnett
c03432ac4c warnings fixes 2019-01-03 07:07:13 -07:00
Ed Hartnett
f8a33aace5 merged ejh_test_null_vars_stride this time I mean it! 2019-01-03 06:36:58 -07:00
Ed Hartnett
9ec2540c2d merged ejh_test_null_vars_stride and ejh_coords_3 2019-01-03 06:27:37 -07:00
Ed Hartnett
4f2d505724 merged ejh_fast_var 2019-01-03 06:26:45 -07:00
Ed Hartnett
867bbad753 merged ejh_relax 2019-01-03 06:26:08 -07:00
Ed Hartnett
ee1680bb80
Merge branch 'master' into ejh_relax 2019-01-03 05:18:57 -07:00
Ed Hartnett
e1785cd324
Merge branch 'master' into ejh_coords_3 2019-01-03 05:18:41 -07:00
Ed Hartnett
c278109c9f
Merge branch 'master' into ejh_test_null_vars_stride 2019-01-03 05:18:25 -07:00
Ward Fisher
c21820a1ae Merge branch 'master' into ansifix.dmh 2019-01-02 22:26:59 -08:00
Ward Fisher
98e6384652
Merge pull request #1252 from Unidata/ansicomment.dmh
Separate out the -ansi comment fixes.
2019-01-02 22:15:42 -08:00
Ward Fisher
94af1d49c6
Merge branch 'master' into ansicomment.dmh 2019-01-02 20:51:28 -08:00
Dennis Heimbigner
ac2e6f9a10 typo5 2019-01-02 21:37:31 -07:00
Dennis Heimbigner
8cd450206a typeo4 2019-01-02 20:53:44 -07:00
Dennis Heimbigner
dc491f9bf9 typos3 2019-01-02 20:31:06 -07:00
Dennis Heimbigner
fe3ba0904c Another typo (sigh\!) 2019-01-02 16:48:11 -07:00
Dennis Heimbigner
6e76972c99 Fix typo 2019-01-02 16:35:22 -07:00
Dennis Heimbigner
a7fa2d8d95 It turns out the the type H5FD_class_t was changed
between HDF5 versions 1.8 and 1.10.
So modify H5FDhttp.c to be conditional on the
HDF5 major+minor version from H5public.h
2019-01-02 14:37:23 -07:00
Dennis Heimbigner
84c2bc0d78 Merge branch 'master' into byterange.dmh 2019-01-02 13:18:45 -07:00
Ed Hartnett
74e4dcc4a2 deprecated non-relaxed boundary checking 2019-01-02 11:04:28 -07:00
Ed Hartnett
5e66c086a2 took config include out of h5testszip 2019-01-02 06:46:56 -07:00
Ed Hartnett
35017d9549 fixed mistake in Makefile.am 2019-01-02 06:21:11 -07:00
Ed Hartnett
6416abe887 fixed HDF4 abort warning 2019-01-02 05:58:54 -07:00
Ed Hartnett
00a43c5374 added curl to try and get hdf4 test files 2019-01-02 05:47:53 -07:00
Ed Hartnett
140967e174 more config.h includes for tests 2019-01-02 05:37:54 -07:00
Ed Hartnett
c15c3fa8d5 cleaned up makefile.am, added config.h to some tests 2019-01-02 05:31:15 -07:00
Ed Hartnett
0e6a62d8fc fixed some tests 2019-01-02 04:04:50 -07:00
Ed Hartnett
133d0e21f6 fixed some tests 2019-01-02 04:04:00 -07:00
Ed Hartnett
7eeb87ada6
Merge branch 'master' into ejh_fast_var 2019-01-02 03:55:19 -07:00
Ed Hartnett
bdf7eef7c6 merged master 2019-01-02 03:52:51 -07:00
Ed Hartnett
52683c5ec7
Merge branch 'master' into ejh_coords_3 2019-01-02 03:49:46 -07:00
Ed Hartnett
35495eb734
Merge branch 'master' into ejh_test_null_vars_stride 2019-01-02 03:49:22 -07:00
Ward Fisher
a26d188917
Merge pull request #1264 from Unidata/pr-aggregation.wif
YAA (Yet Another Aggregation)
2019-01-02 00:13:37 -07:00
Dennis Heimbigner
b2e24ea2b1 Ignore lgtm alerts 2019-01-01 19:34:12 -07:00
Dennis Heimbigner
bf2746b8ea Provide byte-range reading of remote datasets
re: issue https://github.com/Unidata/netcdf-c/issues/1251

Assume that you have the URL to a remote dataset
which is a normal netcdf-3 or netcdf-4 file.

This PR allows the netcdf-c to read that dataset's
contents as a netcdf file using HTTP byte ranges
if the remote server supports byte-range access.

Originally, this PR was set up to access Amazon S3 objects,
but it can also access other remote datasets such as those
provided by a Thredds server via the HTTPServer access protocol.
It may also work for other kinds of servers.

Note that this is not intended as a true production
capability because, as is known, this kind of access to
can be quite slow. In addition, the byte-range IO drivers
do not currently do any sort of optimization or caching.

An additional goal here is to gain some experience with
the Amazon S3 REST protocol.

This architecture and its use documented in
the file docs/byterange.dox.

There are currently two test cases:

1. nc_test/tst_s3raw.c - this does a simple open, check format, close cycle
   for a remote netcdf-3 file and a remote netcdf-4 file.
2. nc_test/test_s3raw.sh - this uses ncdump to investigate some remote
   datasets.

This PR also incorporates significantly changed model inference code
(see the superceded PR https://github.com/Unidata/netcdf-c/pull/1259).

1. It centralizes the code that infers the dispatcher.
2. It adds support for byte-range URLs

Other changes:

1. NC_HDF5_finalize was not being properly called by nc_finalize().
2. Fix minor bug in ncgen3.l
3. fix memory leak in nc4info.c
4. add code to walk the .daprc triples and to replace protocol=
   fragment tag with a more general mode= tag.

Final Note:
Th inference code is still way too complicated. We need to move
to the validfile() model used by netcdf Java, where each
dispatcher is asked if it can process the file. This decentralizes
the inference code. This will be done after all the major new
dispatchers (PIO, Zarr, etc) have been implemented.
2019-01-01 18:27:36 -07:00
Ed Hartnett
46e50bc196 more tests for NULL strides 2018-12-31 09:44:29 -07:00
Ed Hartnett
091880fd4d fixed null stride problem for vars calls 2018-12-31 07:36:39 -07:00
Ed Hartnett
322840e4cf benchmarking test work 2018-12-31 07:02:18 -07:00
Ward Fisher
9e94e3298d Merge branch 'ejh_fast_var_prep_2' of https://github.com/NetCDF-World-Domination-Council/netcdf-c into pr-aggregation.wif 2018-12-31 00:02:04 -08:00