issue_comments
4 rows where issue = 118910006 sorted by updated_at descending
This data as json, CSV (advanced)
Suggested facets: created_at (date), updated_at (date)
issue 1
- Problems when array of coordinate bounds is 2D · 4 ✖
id | html_url | issue_url | node_id | user | created_at | updated_at ▲ | author_association | body | reactions | performed_via_github_app | issue |
---|---|---|---|---|---|---|---|---|---|---|---|
159727745 | https://github.com/pydata/xarray/issues/667#issuecomment-159727745 | https://api.github.com/repos/pydata/xarray/issues/667 | MDEyOklzc3VlQ29tbWVudDE1OTcyNzc0NQ== | spencerahill 6200806 | 2015-11-25T20:45:42Z | 2015-11-25T20:46:14Z | CONTRIBUTOR | Sorry, @spencerkclark is right, the ValueError issue we had was also due to the 2D time bounds array only. For example: (the netCDF file used below is also at ftp://ftp.gfdl.noaa.gov/pub/s1h/atmos.201001-201012.t_surf.nc) ``` python In [1]: ds = xray.open_dataset('/archive/Spencer.Hill/am3/am3clim_hurrell/gfdl.ncrc2-intel-prod-openmp/pp/atmos/ts/monthly/1yr/atmos.201001-201012.t_surf.nc') In [2]: print(ds)ValueError Traceback (most recent call last) <ipython-input-2-4d24098ddece> in <module>() ----> 1 print(ds) /home/s1h/anaconda/lib/python2.7/site-packages/xray/core/dataset.pyc in repr(self) 885 886 def repr(self): --> 887 return formatting.dataset_repr(self) 888 889 @property ... /home/s1h/anaconda/lib/python2.7/site-packages/pandas/tseries/timedeltas.pyc in _convert_listlike(arg, box, unit, name) 47 value = arg.astype('timedelta64[{0}]'.format(unit)).astype('timedelta64[ns]', copy=False) 48 else: ---> 49 value = tslib.array_to_timedelta64(_ensure_object(arg), unit=unit, errors=errors) 50 value = value.astype('timedelta64[ns]', copy=False) 51 pandas/tslib.pyx in pandas.tslib.array_to_timedelta64 (pandas/tslib.c:47046)() ValueError: Buffer has wrong number of dimensions (expected 1, got 2) In [3]: ds2 = ds.drop('time_bounds') In [4]: print(ds2) <xray.Dataset> Dimensions: (bnds: 2, lat: 90, lon: 144, time: 12) Coordinates: * lat (lat) float64 -89.0 -87.0 -85.0 -83.0 -81.0 -79.0 -77.0 ... * lon (lon) float64 1.25 3.75 6.25 8.75 11.25 13.75 16.25 18.75 ... * time (time) datetime64[ns] 2010-01-16T12:00:00 2010-02-15 ... * bnds (bnds) int64 0 1 Data variables: average_DT (time) timedelta64[ns] 31 days 28 days 31 days 30 days ... average_T1 (time) datetime64[ns] 2010-01-01 2010-02-01 2010-03-01 ... average_T2 (time) datetime64[ns] 2010-02-01 2010-03-01 2010-04-01 ... lat_bnds (lat, bnds) float64 -90.0 -88.0 -88.0 -86.0 -86.0 -84.0 ... lon_bnds (lon, bnds) float64 0.0 2.5 2.5 5.0 5.0 7.5 7.5 10.0 10.0 ... t_surf (time, lat, lon) float64 245.9 245.9 245.8 245.7 245.7 245.6 ... ... ``` The errors I was thinking of relating to these lat- and lon-bounds were ultimately due to errors in my own code...my mistakes appear to be the unifying theme here! Sorry for the confusion. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Problems when array of coordinate bounds is 2D 118910006 | |
159727062 | https://github.com/pydata/xarray/issues/667#issuecomment-159727062 | https://api.github.com/repos/pydata/xarray/issues/667 | MDEyOklzc3VlQ29tbWVudDE1OTcyNzA2Mg== | spencerkclark 6628425 | 2015-11-25T20:41:45Z | 2015-11-25T20:41:45Z | MEMBER | I think the reason one gets the "Buffer has wrong number of dimensions" error here is still because of the presence of the time_bounds variable. If we drop time_bounds upon reading the file in, I think things work OK.
|
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Problems when array of coordinate bounds is 2D 118910006 | |
159717471 | https://github.com/pydata/xarray/issues/667#issuecomment-159717471 | https://api.github.com/repos/pydata/xarray/issues/667 | MDEyOklzc3VlQ29tbWVudDE1OTcxNzQ3MQ== | jhamman 2443309 | 2015-11-25T20:04:48Z | 2015-11-25T20:04:48Z | MEMBER | I think ultimately, these are going to end up as Variables, not Coordinates. The CF convention refers to them as "Boundary Variables", and although they are essentially metadata for the Coordinates, I don't think that sort of complexity makes sense for xray right now. It shouldn't be too hard to fix the 2-d bounds problem though. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Problems when array of coordinate bounds is 2D 118910006 | |
159716781 | https://github.com/pydata/xarray/issues/667#issuecomment-159716781 | https://api.github.com/repos/pydata/xarray/issues/667 | MDEyOklzc3VlQ29tbWVudDE1OTcxNjc4MQ== | shoyer 1217238 | 2015-11-25T20:01:21Z | 2015-11-25T20:01:21Z | MEMBER | Is it possible for you to share a netcdf file that reproduces the issue? Based on the ncdump result, I think xray should handle it fine... |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
Problems when array of coordinate bounds is 2D 118910006 |
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