issue_comments
7 rows where issue = 217216935 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: reactions, created_at (date), updated_at (date)
issue 1
- Cannot open NetCDF file if dimension with time coordinate has length 0 (`ValueError` when decoding CF datetime) · 7 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
1206833539 | https://github.com/pydata/xarray/issues/1329#issuecomment-1206833539 | https://api.github.com/repos/pydata/xarray/issues/1329 | IC_kwDOAMm_X85H7tGD | kevinrosa 13137098 | 2022-08-05T20:22:47Z | 2022-08-05T20:22:47Z | NONE | Has anyone found a workaround for this issue? I am able to recreate the ValueError via @Thomas-Z's example using xarray 2022.6.0. |
{ "total_count": 1, "+1": 1, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Cannot open NetCDF file if dimension with time coordinate has length 0 (`ValueError` when decoding CF datetime) 217216935 | |
863271758 | https://github.com/pydata/xarray/issues/1329#issuecomment-863271758 | https://api.github.com/repos/pydata/xarray/issues/1329 | MDEyOklzc3VlQ29tbWVudDg2MzI3MTc1OA== | Thomas-Z 1492047 | 2021-06-17T14:08:54Z | 2021-06-17T14:11:47Z | CONTRIBUTOR | Hello, Using the same code sample: ``` import numpy import xarray ds = xarray.Dataset( {"a": ("x", [])}, coords={"x": numpy.zeros(shape=0, dtype="M8[ns]")}) ds.to_netcdf("/tmp/test.nc") xarray.open_dataset("/tmp/test.nc") ``` It works on xarray 0.17 but does not work anymore with xarray 0.18 & 0.18.2. This addition seems to be responsible (coming from this commit). |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Cannot open NetCDF file if dimension with time coordinate has length 0 (`ValueError` when decoding CF datetime) 217216935 | |
709570971 | https://github.com/pydata/xarray/issues/1329#issuecomment-709570971 | https://api.github.com/repos/pydata/xarray/issues/1329 | MDEyOklzc3VlQ29tbWVudDcwOTU3MDk3MQ== | gmaze 1956032 | 2020-10-15T20:25:10Z | 2020-10-15T20:25:10Z | CONTRIBUTOR | I don't know if this issue is still relevant for xarray But I encountered the same error with https://github.com/euroargodev/argopy and may be surprisingly, only with xarray version 0.16.1 |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Cannot open NetCDF file if dimension with time coordinate has length 0 (`ValueError` when decoding CF datetime) 217216935 | |
491952681 | https://github.com/pydata/xarray/issues/1329#issuecomment-491952681 | https://api.github.com/repos/pydata/xarray/issues/1329 | MDEyOklzc3VlQ29tbWVudDQ5MTk1MjY4MQ== | deeplycloudy 1325771 | 2019-05-13T19:23:16Z | 2019-05-13T19:23:16Z | CONTRIBUTOR | I ran into this issue with a file from the GOES-17 lightning mapper. A simple script to reproduce is:
giving the error ``` ----> 1 d.load() ~/anaconda/envs/isatss/lib/python3.7/site-packages/xarray/core/dataset.py in load(self, **kwargs) 516 for k, v in self.variables.items(): 517 if k not in lazy_data: --> 518 v.load() 519 520 return self ~/anaconda/envs/isatss/lib/python3.7/site-packages/xarray/core/variable.py in load(self, kwargs) 325 self._data = as_compatible_data(self._data.compute(kwargs)) 326 elif not isinstance(self._data, np.ndarray): --> 327 self._data = np.asarray(self._data) 328 return self 329 ~/anaconda/envs/isatss/lib/python3.7/site-packages/numpy/core/numeric.py in asarray(a, dtype, order) 499 500 """ --> 501 return array(a, dtype, copy=False, order=order) 502 503 ~/anaconda/envs/isatss/lib/python3.7/site-packages/xarray/core/indexing.py in array(self, dtype) 624 625 def array(self, dtype=None): --> 626 self._ensure_cached() 627 return np.asarray(self.array, dtype=dtype) 628 ~/anaconda/envs/isatss/lib/python3.7/site-packages/xarray/core/indexing.py in _ensure_cached(self) 621 def _ensure_cached(self): 622 if not isinstance(self.array, NumpyIndexingAdapter): --> 623 self.array = NumpyIndexingAdapter(np.asarray(self.array)) 624 625 def array(self, dtype=None): ~/anaconda/envs/isatss/lib/python3.7/site-packages/numpy/core/numeric.py in asarray(a, dtype, order) 499 500 """ --> 501 return array(a, dtype, copy=False, order=order) 502 503 ~/anaconda/envs/isatss/lib/python3.7/site-packages/xarray/core/indexing.py in array(self, dtype) 602 603 def array(self, dtype=None): --> 604 return np.asarray(self.array, dtype=dtype) 605 606 def getitem(self, key): ~/anaconda/envs/isatss/lib/python3.7/site-packages/numpy/core/numeric.py in asarray(a, dtype, order) 499 500 """ --> 501 return array(a, dtype, copy=False, order=order) 502 503 ~/anaconda/envs/isatss/lib/python3.7/site-packages/xarray/core/indexing.py in array(self, dtype) 508 def array(self, dtype=None): 509 array = as_indexable(self.array) --> 510 return np.asarray(array[self.key], dtype=None) 511 512 def transpose(self, order): ~/anaconda/envs/isatss/lib/python3.7/site-packages/numpy/core/numeric.py in asarray(a, dtype, order) 499 500 """ --> 501 return array(a, dtype, copy=False, order=order) 502 503 ~/anaconda/envs/isatss/lib/python3.7/site-packages/xarray/coding/variables.py in array(self, dtype) 66 67 def array(self, dtype=None): ---> 68 return self.func(self.array) 69 70 def repr(self): ~/anaconda/envs/isatss/lib/python3.7/site-packages/xarray/coding/times.py in decode_cf_datetime(num_dates, units, calendar, use_cftime) 174 try: 175 dates = _decode_datetime_with_pandas(flat_num_dates, units, --> 176 calendar) 177 except (OutOfBoundsDatetime, OverflowError): 178 dates = _decode_datetime_with_cftime( ~/anaconda/envs/isatss/lib/python3.7/site-packages/xarray/coding/times.py in _decode_datetime_with_pandas(flat_num_dates, units, calendar) 139 warnings.filterwarnings('ignore', 'invalid value encountered', 140 RuntimeWarning) --> 141 pd.to_timedelta(flat_num_dates.min(), delta) + ref_date 142 pd.to_timedelta(flat_num_dates.max(), delta) + ref_date 143 ~/anaconda/envs/isatss/lib/python3.7/site-packages/numpy/core/_methods.py in _amin(a, axis, out, keepdims, initial) 30 def _amin(a, axis=None, out=None, keepdims=False, 31 initial=_NoValue): ---> 32 return umr_minimum(a, axis, None, out, keepdims, initial) 33 34 def _sum(a, axis=None, dtype=None, out=None, keepdims=False, ValueError: zero-size array to reduction operation minimum which has no identity ``` Versions: |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Cannot open NetCDF file if dimension with time coordinate has length 0 (`ValueError` when decoding CF datetime) 217216935 | |
318086000 | https://github.com/pydata/xarray/issues/1329#issuecomment-318086000 | https://api.github.com/repos/pydata/xarray/issues/1329 | MDEyOklzc3VlQ29tbWVudDMxODA4NjAwMA== | gerritholl 500246 | 2017-07-26T15:17:54Z | 2017-07-26T15:17:54Z | CONTRIBUTOR | I'd still like to fix this but I have too much workload at the moment. However, I've noticed it's also triggered if the time axis is not empty, but we subselect data such that it becomes empty, then run |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Cannot open NetCDF file if dimension with time coordinate has length 0 (`ValueError` when decoding CF datetime) 217216935 | |
289496452 | https://github.com/pydata/xarray/issues/1329#issuecomment-289496452 | https://api.github.com/repos/pydata/xarray/issues/1329 | MDEyOklzc3VlQ29tbWVudDI4OTQ5NjQ1Mg== | gerritholl 500246 | 2017-03-27T15:51:08Z | 2017-03-27T15:51:16Z | CONTRIBUTOR | I might try it out but most likely not before the end of the week. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Cannot open NetCDF file if dimension with time coordinate has length 0 (`ValueError` when decoding CF datetime) 217216935 | |
289496168 | https://github.com/pydata/xarray/issues/1329#issuecomment-289496168 | https://api.github.com/repos/pydata/xarray/issues/1329 | MDEyOklzc3VlQ29tbWVudDI4OTQ5NjE2OA== | shoyer 1217238 | 2017-03-27T15:50:08Z | 2017-03-27T15:50:08Z | MEMBER | Thanks for the report -- marking this as a bug. If you are able to put together a PR to fix this that would be appreciated. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Cannot open NetCDF file if dimension with time coordinate has length 0 (`ValueError` when decoding CF datetime) 217216935 |
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 6