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/3026#issuecomment-507408253,https://api.github.com/repos/pydata/xarray/issues/3026,507408253,MDEyOklzc3VlQ29tbWVudDUwNzQwODI1Mw==,2448579,2019-07-01T20:13:25Z,2019-07-01T20:13:25Z,MEMBER,"Hi @jukent, if you edit the first comment of your pull request you should be able to change it to Closes #3026 which will automatically close this issue when that PR is merged.","{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,456769766 https://github.com/pydata/xarray/issues/3026#issuecomment-507392001,https://api.github.com/repos/pydata/xarray/issues/3026,507392001,MDEyOklzc3VlQ29tbWVudDUwNzM5MjAwMQ==,46687291,2019-07-01T19:22:15Z,2019-07-01T19:22:15Z,CONTRIBUTOR,"This issue can be closed, and is addressed in pull request #3045 ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,456769766 https://github.com/pydata/xarray/issues/3026#issuecomment-505556932,https://api.github.com/repos/pydata/xarray/issues/3026,505556932,MDEyOklzc3VlQ29tbWVudDUwNTU1NjkzMg==,46687291,2019-06-25T18:04:06Z,2019-06-25T18:04:06Z,CONTRIBUTOR,Created pull request #3042 ,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,456769766 https://github.com/pydata/xarray/issues/3026#issuecomment-505198712,https://api.github.com/repos/pydata/xarray/issues/3026,505198712,MDEyOklzc3VlQ29tbWVudDUwNTE5ODcxMg==,46687291,2019-06-24T22:02:27Z,2019-06-24T22:02:27Z,CONTRIBUTOR,I will submit a pull request to add separate rename dims and rename coords functions in a day or two.,"{""total_count"": 1, ""+1"": 1, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,456769766 https://github.com/pydata/xarray/issues/3026#issuecomment-505185755,https://api.github.com/repos/pydata/xarray/issues/3026,505185755,MDEyOklzc3VlQ29tbWVudDUwNTE4NTc1NQ==,1217238,2019-06-24T21:19:42Z,2019-06-24T21:19:42Z,MEMBER,"I think `swap_dims` solves many of these use-cases, but it would be better to have a `rename_dims` method that worked more directly.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,456769766 https://github.com/pydata/xarray/issues/3026#issuecomment-505179831,https://api.github.com/repos/pydata/xarray/issues/3026,505179831,MDEyOklzc3VlQ29tbWVudDUwNTE3OTgzMQ==,46687291,2019-06-24T21:02:06Z,2019-06-24T21:02:06Z,CONTRIBUTOR,Should we close this issue?,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,456769766 https://github.com/pydata/xarray/issues/3026#issuecomment-504238699,https://api.github.com/repos/pydata/xarray/issues/3026,504238699,MDEyOklzc3VlQ29tbWVudDUwNDIzODY5OQ==,43126798,2019-06-20T23:51:10Z,2019-06-20T23:51:10Z,CONTRIBUTOR,"For example, you might have a rectilinear grid in a non-geodetic coordinate system, for example a rotated pole: ``` Dimensions: (period: 7, x: 3, y: 3) Coordinates: height float64 2.0 lon (y, x) float64 137.6 138.1 138.6 137.6 ... 137.7 138.1 138.6 lat (y, x) float64 -21.71 -21.73 -21.74 ... -20.83 -20.85 -20.86 * y (y) float64 7.92 8.36 8.8 * x (x) float64 176.5 176.9 177.4 * period (period) object '1961-1980' '1981-2000' ... '2081-2100' Data variables: loc (period, y, x) float64 311.2 311.4 311.2 ... 316.0 316.0 315.6 scale (period, y, x) float64 1.231 1.223 1.192 ... 0.8923 0.8934 shape (period, y, x) float64 0.4358 0.4261 ... -0.001062 0.009387 rotated_pole |S1 b'' ``` Obviously this case is a little more complicated, because x/y and lon/lat don't have a one-to-one correspondence. But I want to be able to write code that works with both cases, ideally without special casing stuff. Being able to have separately named dim and coordinate variables would help a lot. However, now that I look at this example, I guess in my case I have both x/y and lat/lon in the coordinates anyway, so maybe I should just duplicate them, with different names.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,456769766 https://github.com/pydata/xarray/issues/3026#issuecomment-504212802,https://api.github.com/repos/pydata/xarray/issues/3026,504212802,MDEyOklzc3VlQ29tbWVudDUwNDIxMjgwMg==,46687291,2019-06-20T21:50:09Z,2019-06-20T22:10:50Z,CONTRIBUTOR,"``` import xarray as xr ds = xr.tutorial.open_dataset('air_temperature') ds.coords['y'] = ('lat',ds.lat) ds.coords['x'] = ('lon',ds.lon) ds_swappeddims = ds.swap_dims({'lat':'y','lon':'x'}) ds_swappeddims.drop(['x','y']) ``` Did you do something like this?/Is this what you are after but would like a cleaner solution?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,456769766 https://github.com/pydata/xarray/issues/3026#issuecomment-504180503,https://api.github.com/repos/pydata/xarray/issues/3026,504180503,MDEyOklzc3VlQ29tbWVudDUwNDE4MDUwMw==,46687291,2019-06-20T20:58:46Z,2019-06-20T20:58:46Z,CONTRIBUTOR,"I am looking into this, but first I am making sure I understand the relationship between coordinates and dimensions. Could you give me an example of when you would use this functionality?","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,456769766 https://github.com/pydata/xarray/issues/3026#issuecomment-502882609,https://api.github.com/repos/pydata/xarray/issues/3026,502882609,MDEyOklzc3VlQ29tbWVudDUwMjg4MjYwOQ==,43126798,2019-06-17T23:04:34Z,2019-06-17T23:04:34Z,CONTRIBUTOR,"Is there even any work-around at the moment? I could try a pull request, if I could figure it out.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,456769766 https://github.com/pydata/xarray/issues/3026#issuecomment-502726631,https://api.github.com/repos/pydata/xarray/issues/3026,502726631,MDEyOklzc3VlQ29tbWVudDUwMjcyNjYzMQ==,1217238,2019-06-17T15:16:06Z,2019-06-17T15:16:06Z,MEMBER,"Yes, this would be really nice. We should have a separate `rename_dims()` method that only renames dimensions.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,456769766