issue_comments: 627368616
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/4043#issuecomment-627368616 | https://api.github.com/repos/pydata/xarray/issues/4043 | 627368616 | MDEyOklzc3VlQ29tbWVudDYyNzM2ODYxNg== | 1197350 | 2020-05-12T14:07:39Z | 2020-05-12T14:07:39Z | MEMBER | I have spent plenty of time debugging these sorts of issues. It really helps to take xarray out of the equation. Try making your request with just the netCDF--that's all that xarray uses under the hood. Overall your example is very complicated, which makes it hard to find the core issue. You generally want to try something like this
A few additional comments about your code: ```python Select spatial subset [lon,lat]ds = ds.where((ds.lon >= Lon[0] - dl) & (ds.lon <= Lon[1] + dl) & (ds.lat >= Lat[0] - dl) & (ds.lat <= Lat[1] + dl), drop=True) ``` This is NOT how you do subsetting with xarray. Where is meant for masking. I recommend reviewing the xarray docs on indexing and selecting. Your call should be something like
What's the difference?
Can you do this sorting after loading the data. It's an expensive operation and might not interact well with the opendap server. |
{ "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
614144170 |