Jeff Whitaker
Jeff Whitaker
I think this can be done now by setting the TIMEOUT variable in the .daprc file that the C library uses. https://www.unidata.ucar.edu/software/netcdf/docs/auth.html
The C API (which the python interface uses) does not provide an explicit way to set the timeout.
Perhaps a Dataset wrapper or subclass could be created for working with remote OpenDAP datasets, with additional features like this. A PR would be welcome.
scipy.io_netcdf is a pure python module that reads and writes netcdf-3 formatted files directly. netcdf4-python is a python interface to the netcdf C library, and can handle the netcdf HDF5-based...
I should have said "impossible without extensive modifications to the HDF5 and netCDF C libs". I suppose as a workaround we could dump the bytes from the open file object...
Here's the documentation for the netCDF-C routine (`nc_open_mem`) that we could wrap in cython: http://www.unidata.ucar.edu/software/netcdf/docs/group__datasets.html#gac12fdf7579a2619b2aeb238cea2e7377
Can you post the file here? (attach to ticket as a gzipped tar file?)
Also, what version of netcdf-c are you using? (you can check by looking at the `__netcdf4libversion__` module variable).
Very cool - if you combine this with pupynere you could have a pure python implementation of the netcdf c library (except for the DAP part)! Just a couple of...
does h5py support "orthogonal indexing" with booleans and integers?