issue_comments
1 row where issue = 217216935 and user = 1325771 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: 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) · 1 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
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 |
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 1