{"action":"opened","issue":{"url":"https://api.github.com/repos/xgcm/xgcm/issues/60","repository_url":"https://api.github.com/repos/xgcm/xgcm","labels_url":"https://api.github.com/repos/xgcm/xgcm/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/xgcm/xgcm/issues/60/comments","events_url":"https://api.github.com/repos/xgcm/xgcm/issues/60/events","html_url":"https://github.com/xgcm/xgcm/issues/60","id":232561870,"number":60,"title":"xarray attr","user":{"login":"bderembl","id":19313653,"avatar_url":"https://avatars3.githubusercontent.com/u/19313653?v=3","gravatar_id":"","url":"https://api.github.com/users/bderembl","html_url":"https://github.com/bderembl","followers_url":"https://api.github.com/users/bderembl/followers","following_url":"https://api.github.com/users/bderembl/following{/other_user}","gists_url":"https://api.github.com/users/bderembl/gists{/gist_id}","starred_url":"https://api.github.com/users/bderembl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bderembl/subscriptions","organizations_url":"https://api.github.com/users/bderembl/orgs","repos_url":"https://api.github.com/users/bderembl/repos","events_url":"https://api.github.com/users/bderembl/events{/privacy}","received_events_url":"https://api.github.com/users/bderembl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-05-31T13:15:43Z","updated_at":"2017-05-31T13:15:43Z","closed_at":null,"body":"I am trying to use an xarray loaded via xmitgcm:\r\n```\r\nds = open_mdsdataset(dir0,iters='all',prefix=['U','V','Eta'])\r\ngrid = xgcm.Grid(ds)\r\n```\r\n\r\nit seems that grid is empty\r\nfrom what I see in grid.py, it only returns the summary such that _axes is empty\r\nI looked at comodo.py in get_axis_coords() and in fact my field doen't have an 'axis' attribute: here is the line where I suspect the issue is:\r\n`        axis = ds[d].attrs.get('axis')` \r\n\r\n\r\nhere is a summary of ds['XC']\r\nOut[34]: \r\n<xarray.DataArray 'XC' (XC: 1120)>\r\narray([-65.958   , -65.873993, -65.789993, ...,  27.873995,  27.957998,\r\n        28.042002], dtype=float32)\r\nCoordinates:\r\n  * XC       (XC) >f4 -65.958 -65.874 -65.79 -65.706 -65.622 -65.538 -65.454 ...\r\nAttributes:\r\n    long_name:      longitude\r\n    units:          degrees_east\r\n    coordinate:     YC XC\r\n    standard_name:  longitude\r\n\r\n\r\n\r\n\r\n"}}
{"actor":{"display_login":"bderembl"}}