issues: 128735308
This data as json
id | node_id | number | title | user | state | locked | assignee | milestone | comments | created_at | updated_at | closed_at | author_association | active_lock_reason | draft | pull_request | body | reactions | performed_via_github_app | state_reason | repo | type |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
128735308 | MDU6SXNzdWUxMjg3MzUzMDg= | 725 | Replacing coord with coord of same name results in NaNs | 6200806 | closed | 0 | 2 | 2016-01-26T06:12:42Z | 2016-02-16T05:19:07Z | 2016-02-16T05:19:07Z | CONTRIBUTOR | I think this is another unintended consequence of #648. Consider the following case:
Note the The use case: we have some data defined on the edges of pressure levels in an atmospheric model, and other data defined at the center of the pressure levels. In order to perform calculations involving both kinds of data, we average the edge-defined data (i.e. 0.5*(value at top edge + value at bottom edge)) to get the value at the level centers. But the resulting DataArray still has as its coord (from xarray's perspective, that is) the level edges, and so we replace that coord with the DataArray of the level centers. A workaround would be Somewhat involved and not sure I described clearly, so let me know if clarification needed. Also I vaguely suspect there's a cleaner way of doing this in the first place. Thanks! |
{ "url": "https://api.github.com/repos/pydata/xarray/issues/725/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
completed | 13221727 | issue |