html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/issues/1152#issuecomment-459772046,https://api.github.com/repos/pydata/xarray/issues/1152,459772046,MDEyOklzc3VlQ29tbWVudDQ1OTc3MjA0Ng==,6213168,2019-02-01T16:02:12Z,2019-02-01T16:02:12Z,MEMBER,Working as intended according to the maintainer. Apologies for not closing this sooner.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,193294729
https://github.com/pydata/xarray/issues/1152#issuecomment-457211346,https://api.github.com/repos/pydata/xarray/issues/1152,457211346,MDEyOklzc3VlQ29tbWVudDQ1NzIxMTM0Ng==,26384082,2019-01-24T14:15:25Z,2019-01-24T14:15:25Z,NONE,"In order to maintain a list of currently relevant issues, we mark issues as stale after a period of inactivity
If this issue remains relevant, please comment here; otherwise it will be marked as closed automatically
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,193294729
https://github.com/pydata/xarray/issues/1152#issuecomment-268710084,https://api.github.com/repos/pydata/xarray/issues/1152,268710084,MDEyOklzc3VlQ29tbWVudDI2ODcxMDA4NA==,5635139,2016-12-22T03:32:30Z,2016-12-22T03:32:30Z,MEMBER,"Thanks. I was mistaken.
The ""infinite tree"" was causing some of the tests back at #1147 to do weird things (pytest seems not to handle infinite recursion responsibly). But it makes sense","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,193294729
https://github.com/pydata/xarray/issues/1152#issuecomment-268669077,https://api.github.com/repos/pydata/xarray/issues/1152,268669077,MDEyOklzc3VlQ29tbWVudDI2ODY2OTA3Nw==,1217238,2016-12-21T23:14:17Z,2016-12-21T23:14:17Z,MEMBER,"@MaximilianR Let me help clarify:
- Currently, DataArray does not have a `.variables` attributes.
- The state of a DataArray is stored in the form of variables in `._variable` (an `xarray.Variable`) and `._coords` (of type `OrderedDict[Any, xarray.Variable]`).
- From a user facing API, you can get access to these variables via `.variable` and `.coords.variables` (I don't know if the later is clearly documented, but if not it should be).
So the ""infinite tree of DataArrrays"" only applies if you are accessing them directly via `.coords`, and under the covers data is represented in a pretty sane way.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,193294729
https://github.com/pydata/xarray/issues/1152#issuecomment-268404206,https://api.github.com/repos/pydata/xarray/issues/1152,268404206,MDEyOklzc3VlQ29tbWVudDI2ODQwNDIwNg==,5635139,2016-12-21T00:58:06Z,2016-12-21T00:58:06Z,MEMBER,"Tangentially connected this - should a `DataArray` always have a `.variables` attribute? When would / wouldn't it?
Currently, it may or may not. And its coords may or may not be DataArrays, which makes the tree of objects seemingly complicated (maybe it needs to be?). But it means we're special-casing some of the checks in https://github.com/pydata/xarray/pull/1147
```python
(Pdb++) a
array([-0.04729734, 0.08287289, 0.13965946])
(Pdb++) a.variables
*** AttributeError: 'DataArray' object has no attribute 'variables'
(Pdb++) a.variable
array([-0.04729734, 0.08287289, 0.13965946])
```","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,193294729
https://github.com/pydata/xarray/issues/1152#issuecomment-264913502,https://api.github.com/repos/pydata/xarray/issues/1152,264913502,MDEyOklzc3VlQ29tbWVudDI2NDkxMzUwMg==,10050469,2016-12-05T17:09:34Z,2016-12-05T17:09:34Z,MEMBER,"> sometime coordinates really only describe the data variable(s)
Yes. What I meant with my yesterday's late night answer is that keeping the coordinates around could be most useful when using irregular coordinates...","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,193294729
https://github.com/pydata/xarray/issues/1152#issuecomment-264786579,https://api.github.com/repos/pydata/xarray/issues/1152,264786579,MDEyOklzc3VlQ29tbWVudDI2NDc4NjU3OQ==,1217238,2016-12-05T07:41:43Z,2016-12-05T07:41:43Z,MEMBER,"So this definitely was intentional, according to the principle that coordinates are shared between everything in a Dataset/DataArray.
I agree that doesn't always make sense -- sometime coordinates really only describe the data variable(s), so keeping them around on coordinates merely because they contain the appropriate dimensions is inappropriate.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,193294729
https://github.com/pydata/xarray/issues/1152#issuecomment-264737209,https://api.github.com/repos/pydata/xarray/issues/1152,264737209,MDEyOklzc3VlQ29tbWVudDI2NDczNzIwOQ==,10050469,2016-12-04T22:35:54Z,2016-12-04T22:35:54Z,MEMBER,"I think it's fine. Coordinates sometimes need to be defined by paired coords too:
```python
import xarray as xr
import numpy as np
lon, lat = np.meshgrid(np.linspace(-20, 20, 5), np.linspace(0, 30, 4))
da = xr.DataArray(np.arange(20).reshape(4, 5), dims=['y', 'x'],
coords = {'lat': (('y', 'x'), lat),
'lon': (('y', 'x'), lon)})
da.isel(x=2)['lat']
array([ 0., 10., 20., 30.])
Coordinates:
lon (y) float64 0.0 0.0 0.0 0.0
lat (y) float64 0.0 10.0 20.0 30.0
* y (y) int64 0 1 2 3
x int64 2
```
","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,193294729