issue_comments: 272824929
This data as json
| 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/1199#issuecomment-272824929 | https://api.github.com/repos/pydata/xarray/issues/1199 | 272824929 | MDEyOklzc3VlQ29tbWVudDI3MjgyNDkyOQ== | 10050469 | 2017-01-16T10:27:59Z | 2017-01-16T13:37:15Z | MEMBER | [edited to remove a less relevant comment, now moved to a separate issue] After having a look at the doc about coordinates (http://xarray.pydata.org/en/latest/data-structures.html#coordinates), here a few thoughts:
- it would be good to have clear semantics about the different coordinates. For example, "positional coordinates" for coords with " I'll go on with a simple example that I just tried out to let you know how I dealt with this new behavior of xarray: ```python In [1]: import xarray as xr In [2]: a = np.array([[1.1, 2.2, 3.3], [4.4, 5.5, 6.6]]) In [3]: da = xr.DataArray(a, dims=['y', 'x'], coords={'x':[0.1, 1.1, 2.2], 'xy':(['y', 'x'], a)}) In [4]: da Out[4]: <xarray.DataArray (y: 2, x: 3)> array([[ 1.1, 2.2, 3.3], [ 4.4, 5.5, 6.6]]) Coordinates: * x (x) float64 0.1 1.1 2.2 xy (y, x) float64 1.1 2.2 3.3 4.4 5.5 6.6 o y (y) - ``` "OK, I have three types of coordinates here. This makes sense, they are all defined in a different way. y is a dimension of my dataset, so at least I should be able to select along that dimension:".
"That makes sense. However, this is probably not possible with y, which is not defined:"
I actually think that Maybe I'm completely missing the point here: don't hesitate to correct me! |
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
200125945 |