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/2733#issuecomment-460150546,https://api.github.com/repos/pydata/xarray/issues/2733,460150546,MDEyOklzc3VlQ29tbWVudDQ2MDE1MDU0Ng==,1217238,2019-02-04T07:12:56Z,2019-02-04T07:12:56Z,MEMBER,"Generally you'll want to access variables in a Dataset directly as DataArray objects, e.g., `tmp_file['lat']`. `.variables` is the low level API.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,405487803 https://github.com/pydata/xarray/issues/2733#issuecomment-460150121,https://api.github.com/repos/pydata/xarray/issues/2733,460150121,MDEyOklzc3VlQ29tbWVudDQ2MDE1MDEyMQ==,15742456,2019-02-04T07:10:10Z,2019-02-04T07:11:01Z,NONE,"Thanks a lot @shoyer . It works. Regarding to the `IndexVariable` object, I found that the latP in the file that I am opening is a `IndexVariable` object, so I just did the same when I thought to write it. Thanks for the information. ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,405487803 https://github.com/pydata/xarray/issues/2733#issuecomment-460105724,https://api.github.com/repos/pydata/xarray/issues/2733,460105724,MDEyOklzc3VlQ29tbWVudDQ2MDEwNTcyNA==,1217238,2019-02-04T00:59:33Z,2019-02-04T00:59:33Z,MEMBER,"Hi @ahmedshaaban1 -- the short answer is you mixed up the order of the constructor arguments. This should be `xr.IndexVariable(latP.dims,latP.data,latP.attrs)` Note that normally you shouldn't need to create `IndexVariable` objects directly -- they are public API, but rather low level. Usually I recommend sticking to Dataset/DataArray objects: http://xarray.pydata.org/en/stable/internals.html#variable-objects","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,405487803