issue_comments
9 rows where author_association = "NONE" and issue = 376389539 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- HDF error when trying to write Dataset read with rasterio to NetCDF · 9 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
528103103 | https://github.com/pydata/xarray/issues/2535#issuecomment-528103103 | https://api.github.com/repos/pydata/xarray/issues/2535 | MDEyOklzc3VlQ29tbWVudDUyODEwMzEwMw== | alpha-beta-soup 5925045 | 2019-09-04T21:50:38Z | 2019-09-04T21:50:38Z | NONE | Similar error when using ```python import xarray as xr ds = xr.open_dataset('/data/someFile.nc') # netcdf m = xr.open_rasterio('/data/otherFile.tif') # geotif Everything is happy``` ```python import xarray as xr m = xr.open_rasterio('/data/otherFile.tif') # geotif ds = xr.open_dataset('/data/someFile.nc') # netcdf Results in the following error``` ``` Traceback (most recent call last): File "/usr/local/lib/python3.6/dist-packages/xarray/backends/file_manager.py", line 186, in _acquire_with_cache_info file = self._cache[self._key] File "/usr/local/lib/python3.6/dist-packages/xarray/backends/lru_cache.py", line 42, in getitem value = self._cache[key] KeyError: [<class 'netCDF4._netCDF4.Dataset'>, ('/data/someFile.nc',), 'r', (('clobber', True), ('diskless', False), ('format', 'NETCDF4'), ('persist', False))] During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/lib/python3.6/dist-packages/xarray/backends/api.py", line 420, in open_dataset filename_or_obj, group=group, lock=lock, backend_kwargs) File "/usr/local/lib/python3.6/dist-packages/xarray/backends/netCDF4_.py", line 335, in open autoclose=autoclose) File "/usr/local/lib/python3.6/dist-packages/xarray/backends/netCDF4_.py", line 293, in init self.format = self.ds.data_model File "/usr/local/lib/python3.6/dist-packages/xarray/backends/netCDF4_.py", line 344, in ds return self.acquire() File "/usr/local/lib/python3.6/dist-packages/xarray/backends/netCDF4.py", line 338, in _acquire with self._manager.acquire_context(needs_lock) as root: File "/usr/lib/python3.6/contextlib.py", line 81, in enter return next(self.gen) File "/usr/local/lib/python3.6/dist-packages/xarray/backends/file_manager.py", line 174, in acquire_context file, cached = self._acquire_with_cache_info(needs_lock) File "/usr/local/lib/python3.6/dist-packages/xarray/backends/file_manager.py", line 192, in _acquire_with_cache_info file = self._opener(*self._args, kwargs) File "netCDF4/_netCDF4.pyx", line 2291, in netCDF4._netCDF4.Dataset.init File "netCDF4/_netCDF4.pyx", line 1855, in netCDF4._netCDF4._ensure_nc_success OSError: [Errno -101] NetCDF: HDF error: b'/data/someFile.nc' ``` ```
INSTALLED VERSIONScommit: None python: 3.6.6 (default, Sep 12 2018, 18:26:19) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] python-bits: 64 OS: Linux OS-release: 4.15.0-58-generic machine: x86_64 processor: x86_64 byteorder: little LC_ALL: C.UTF-8 LANG: C.UTF-8 LOCALE: en_US.UTF-8 libhdf5: 1.10.2 libnetcdf: 4.6.3 xarray: 0.12.3 pandas: 0.25.1 numpy: 1.13.3 scipy: 1.3.1 netCDF4: 1.5.1.2 pydap: None h5netcdf: None h5py: None Nio: None zarr: None cftime: 1.0.3.4 nc_time_axis: None PseudoNetCDF: None rasterio: 1.0.26 cfgrib: None iris: None bottleneck: None dask: 2.3.0 distributed: 2.3.2 matplotlib: 3.1.1 cartopy: 0.17.0 seaborn: None numbagg: None setuptools: 39.0.1 pip: 9.0.1 conda: None pytest: None IPython: None sphinx: None ``` And I have the |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
HDF error when trying to write Dataset read with rasterio to NetCDF 376389539 | |
499919008 | https://github.com/pydata/xarray/issues/2535#issuecomment-499919008 | https://api.github.com/repos/pydata/xarray/issues/2535 | MDEyOklzc3VlQ29tbWVudDQ5OTkxOTAwOA== | ChristianF88 9096348 | 2019-06-07T15:00:08Z | 2019-06-07T15:00:08Z | NONE | Well the error occurs while writing the file. So if the reason is, that the file is corrupt then necdf4 is corrupting it... right? The problem is rather, that it does not even finish writing the file. FYI: The error does not occur at the same file every time. Have a good weekend!! ;) |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
HDF error when trying to write Dataset read with rasterio to NetCDF 376389539 | |
499876672 | https://github.com/pydata/xarray/issues/2535#issuecomment-499876672 | https://api.github.com/repos/pydata/xarray/issues/2535 | MDEyOklzc3VlQ29tbWVudDQ5OTg3NjY3Mg== | ChristianF88 9096348 | 2019-06-07T13:04:33Z | 2019-06-07T13:04:33Z | NONE | Hi there, I just wanted to let you know, that I do get the same error, when working with the following script. It does not use xarray or rasterio. So those will most likely not be the problem. ```python class Gif2NetCDF(): def init(self, netcdf_name, netcdf_destfolder, gif_folder, gif_filter_pattern=None, detailled_conversion=True): """
``` Error
Does anybody have some advice on how to fix this? Thanks a bunch! Christian |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
HDF error when trying to write Dataset read with rasterio to NetCDF 376389539 | |
445939304 | https://github.com/pydata/xarray/issues/2535#issuecomment-445939304 | https://api.github.com/repos/pydata/xarray/issues/2535 | MDEyOklzc3VlQ29tbWVudDQ0NTkzOTMwNA== | ghost 10137 | 2018-12-10T19:23:14Z | 2018-12-10T19:23:14Z | NONE | It seems that this is not a problem with xarray but only with rasterio and netCDF4. Also this fails: ```python import rasterio import netCDF4 with netCDF4.Dataset('test.nc', mode='w') as ds:
ds.createDimension('x')
ds.createVariable('foo', float, dimensions=('x'))
print(ds)
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
HDF error when trying to write Dataset read with rasterio to NetCDF 376389539 | |
443840119 | https://github.com/pydata/xarray/issues/2535#issuecomment-443840119 | https://api.github.com/repos/pydata/xarray/issues/2535 | MDEyOklzc3VlQ29tbWVudDQ0Mzg0MDExOQ== | ghost 10137 | 2018-12-03T19:33:17Z | 2018-12-03T19:33:17Z | NONE | I have similar problem, when importing import xarray as xa import numpy as np #import netCDF4 import rasterio ds = xa.Dataset() ds['z'] = (('y', 'x'), np.zeros((100, 100), np.float32)) print(ds) ds.to_netcdf('test.nc') ds.close() with xa.open_dataset('test.nc') as ds: print(ds) If I import I installed everything with pip:
From affine==2.2.1 attrs==18.2.0 cftime==1.0.3 Click==7.0 click-plugins==1.0.4 cligj==0.5.0 Cython==0.29.1 netCDF4==1.4.2 numpy==1.15.4 pandas==0.23.4 pyparsing==2.3.0 python-dateutil==2.7.5 pytz==2018.7 rasterio==1.0.11 six==1.11.0 snuggs==1.4.2 xarray==0.11.0 |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
HDF error when trying to write Dataset read with rasterio to NetCDF 376389539 | |
436261308 | https://github.com/pydata/xarray/issues/2535#issuecomment-436261308 | https://api.github.com/repos/pydata/xarray/issues/2535 | MDEyOklzc3VlQ29tbWVudDQzNjI2MTMwOA== | loicdtx 5638829 | 2018-11-06T13:57:52Z | 2018-11-06T13:57:52Z | NONE | @jhamman, yes, same error message when installing from master |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
HDF error when trying to write Dataset read with rasterio to NetCDF 376389539 | |
436215439 | https://github.com/pydata/xarray/issues/2535#issuecomment-436215439 | https://api.github.com/repos/pydata/xarray/issues/2535 | MDEyOklzc3VlQ29tbWVudDQzNjIxNTQzOQ== | loicdtx 5638829 | 2018-11-06T11:05:39Z | 2018-11-06T11:05:39Z | NONE | @shoyer, below the full traceback; I installed everything with pip
``` Traceback (most recent call last): File "/home/loic/.virtualenvs/tmp-3caa6b25124e2f31/lib/python3.6/site-packages/xarray/backends/api.py", line 724, in to_netcdf unlimited_dims=unlimited_dims, compute=compute) File "/home/loic/.virtualenvs/tmp-3caa6b25124e2f31/lib/python3.6/site-packages/xarray/core/dataset.py", line 1179, in dump_to_store unlimited_dims=unlimited_dims) File "/home/loic/.virtualenvs/tmp-3caa6b25124e2f31/lib/python3.6/site-packages/xarray/backends/common.py", line 374, in store unlimited_dims=unlimited_dims) File "/home/loic/.virtualenvs/tmp-3caa6b25124e2f31/lib/python3.6/site-packages/xarray/backends/netCDF4_.py", line 406, in set_variables super(NetCDF4DataStore, self).set_variables(args, *kwargs) File "/home/loic/.virtualenvs/tmp-3caa6b25124e2f31/lib/python3.6/site-packages/xarray/backends/common.py", line 413, in set_variables self.writer.add(source, target) File "/home/loic/.virtualenvs/tmp-3caa6b25124e2f31/lib/python3.6/site-packages/xarray/backends/common.py", line 272, in add target[...] = source File "/home/loic/.virtualenvs/tmp-3caa6b25124e2f31/lib/python3.6/site-packages/xarray/backends/netCDF4_.py", line 48, in setitem data[key] = value File "netCDF4/_netCDF4.pyx", line 4648, in netCDF4._netCDF4.Variable.setitem File "netCDF4/_netCDF4.pyx", line 4913, in netCDF4._netCDF4.Variable._put File "netCDF4/_netCDF4.pyx", line 1754, in netCDF4._netCDF4._ensure_nc_success RuntimeError: NetCDF: HDF error During handling of the above exception, another exception occurred: Traceback (most recent call last): File "rasterio_reprex.py", line 41, in <module> ds.to_netcdf(nc_name) File "/home/loic/.virtualenvs/tmp-3caa6b25124e2f31/lib/python3.6/site-packages/xarray/core/dataset.py", line 1254, in to_netcdf compute=compute) File "/home/loic/.virtualenvs/tmp-3caa6b25124e2f31/lib/python3.6/site-packages/xarray/backends/api.py", line 729, in to_netcdf store.close() File "/home/loic/.virtualenvs/tmp-3caa6b25124e2f31/lib/python3.6/site-packages/xarray/backends/netCDF4_.py", line 474, in close ds.close() File "netCDF4/_netCDF4.pyx", line 2276, in netCDF4._netCDF4.Dataset.close File "netCDF4/_netCDF4.pyx", line 2260, in netCDF4._netCDF4.Dataset._close File "netCDF4/_netCDF4.pyx", line 1754, in netCDF4._netCDF4._ensure_nc_success RuntimeError: NetCDF: HDF error ``` |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
HDF error when trying to write Dataset read with rasterio to NetCDF 376389539 | |
436062489 | https://github.com/pydata/xarray/issues/2535#issuecomment-436062489 | https://api.github.com/repos/pydata/xarray/issues/2535 | MDEyOklzc3VlQ29tbWVudDQzNjA2MjQ4OQ== | loicdtx 5638829 | 2018-11-05T22:39:36Z | 2018-11-05T22:39:36Z | NONE | yes, that's interesting... are you using a different OS? Let me know if there's something else I can help with. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
HDF error when trying to write Dataset read with rasterio to NetCDF 376389539 | |
436053420 | https://github.com/pydata/xarray/issues/2535#issuecomment-436053420 | https://api.github.com/repos/pydata/xarray/issues/2535 | MDEyOklzc3VlQ29tbWVudDQzNjA1MzQyMA== | loicdtx 5638829 | 2018-11-05T22:07:16Z | 2018-11-05T22:07:16Z | NONE | Hi @jhamman, just tried what you suggest. Apparently it's a |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
HDF error when trying to write Dataset read with rasterio to NetCDF 376389539 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issue_comments] ( [html_url] TEXT, [issue_url] TEXT, [id] INTEGER PRIMARY KEY, [node_id] TEXT, [user] INTEGER REFERENCES [users]([id]), [created_at] TEXT, [updated_at] TEXT, [author_association] TEXT, [body] TEXT, [reactions] TEXT, [performed_via_github_app] TEXT, [issue] INTEGER REFERENCES [issues]([id]) ); CREATE INDEX [idx_issue_comments_issue] ON [issue_comments] ([issue]); CREATE INDEX [idx_issue_comments_user] ON [issue_comments] ([user]);
user 4