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/6553#issuecomment-1114492857,https://api.github.com/repos/pydata/xarray/issues/6553,1114492857,IC_kwDOAMm_X85Cbc-5,90036937,2022-05-02T04:42:46Z,2022-05-02T07:16:05Z,NONE,"> `isobaricInhPa`是一个标量坐标,所以不适合我。如果我删除它,我无法重现结果,我两次都得到正确的结果。`sel`
First of all thanks for your answer.
In fact, this was originally a vector coordinate, but I chose one to send u. This time I upload a version of isobaricInhPa which is a vector coordinate, please select.
The latitude should be 73 but 72 ,but,when I try to check latitude by itself, it works fine again, which makes me think it's a bug.
```
import xarray as xr
data3 = xr.open_dataset('test0001.nc')
# correct
a = data3.sel(time='1979-1',isobaricInhPa=200).z[:, ::10,::10]
##### The latitude should be 73 but 72
# wrong (latitude wrong,latituede is 72)
b = data3.sel(time='1979-1',isobaricInhPa=200).z[:, ::-10,::10]
# correct(latitude wrong,latituede is 73)
b = data3.sel(time='1979-1',isobaricInhPa=200).z[:, ::-10,::10].latitude
```
latitude should be 73, but this is 72, and the coordinates do not correspond to the data
[test0001.zip](https://github.com/pydata/xarray/files/8600812/test0001.zip)
It seem that when use sel() , [: , ::-1 , :] and [: , ::10 , ::10] at the same time will cause the second coord will wrong like this.
Why just when use _sel_ and[: , ::-10 , ::10] ,it will goes wrong( the coordinates DO NOT correspond to the data) ,
but use _sel_ and[: , ::10 , ::10] it goes right (the coordinates DO correspond to the data)?
```
data3.sel(time='1979-1',isobaricInhPa=200).z[:, ::10,::10][: ,::-1,:] #works wrong
data3.sel(time='1979-1',isobaricInhPa=200).z[:, ::10,::10][: ,::1,:] #works right
```
I think this is a bug.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1222066968
https://github.com/pydata/xarray/issues/6553#issuecomment-1114348570,https://api.github.com/repos/pydata/xarray/issues/6553,1114348570,IC_kwDOAMm_X85Ca5wa,5635139,2022-05-01T22:08:36Z,2022-05-01T22:08:36Z,MEMBER,"@jesieleo I appreciate your interest in xarray. But please read the instructions in the bug report and produce an MVCE in a new issue. I understand that requires some work on your end, but please recognize that we're all volunteers here, and so have set up a system to allow the greatest number of issues to be addressed.
ref https://github.com/pydata/xarray/issues/6547","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1222066968
https://github.com/pydata/xarray/issues/6553#issuecomment-1114305955,https://api.github.com/repos/pydata/xarray/issues/6553,1114305955,IC_kwDOAMm_X85CavWj,43316012,2022-05-01T18:37:36Z,2022-05-01T18:37:36Z,COLLABORATOR,"`isobaricInhPa` is a scalar coordinate, so the `sel` is not working for me.
If I remove it, I cannot reproduce the result, I get the correct result both times.","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,1222066968