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/7630#issuecomment-1527541305,https://api.github.com/repos/pydata/xarray/issues/7630,1527541305,IC_kwDOAMm_X85bDG45,5821660,2023-04-28T13:09:22Z,2023-04-28T13:09:22Z,MEMBER,@AlxndrLhr I suppose your original issue is resolved. Please reopen or create a new issue if you still have problems with this.,"{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1624560934 https://github.com/pydata/xarray/issues/7630#issuecomment-1469754531,https://api.github.com/repos/pydata/xarray/issues/7630,1469754531,IC_kwDOAMm_X85Xmqyj,5821660,2023-03-15T10:33:43Z,2023-03-15T10:33:43Z,MEMBER,"Everyday something new to learn, thanks @keewis!","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1624560934 https://github.com/pydata/xarray/issues/7630#issuecomment-1469497104,https://api.github.com/repos/pydata/xarray/issues/7630,1469497104,IC_kwDOAMm_X85Xlr8Q,5821660,2023-03-15T07:38:13Z,2023-03-15T07:38:13Z,MEMBER,"@AlxndrLhr `.loc` is positional. The correct invocation would be: ```python nc.loc[dt] ``` This would try to locate `dt` in the first dimension of `nc`. If you would append your time-dimension to the end, this would look like: ```python nc = nc.expand_dims(time=times_, axis=-1) nc.loc[..., dt] # or nc.loc[:, :, dt] ``` A good first read: https://docs.xarray.dev/en/stable/user-guide/indexing.html#indexing-and-selecting-data ","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1624560934