issue_comments: 1114492857
This data as json
| 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 |
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') correcta = data3.sel(time='1979-1',isobaricInhPa=200).z[:, ::10,::10] The latitude should be 73 but 72wrong (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 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)?
|
{
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} |
1222066968 |