issues: 624778130
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
624778130 | MDU6SXNzdWU2MjQ3NzgxMzA= | 4095 | merging non-dimension coordinates with the Dataset constructor | 14808389 | open | 0 | 1 | 2020-05-26T10:30:37Z | 2022-04-19T13:54:43Z | MEMBER | When adding two This fails: ```python In [1]: import xarray as xr ...: import numpy as np In [2]: a = np.linspace(0, 1, 10)
...: b = np.linspace(-1, 0, 12)
...:
...: x_a = np.arange(10)
...: x_b = np.arange(12)
...:
...: y_a = x_a * 1000
...: y_b = x_b * 1000
...:
...: arr1 = xr.DataArray(data=a, coords={"x": x_a, "y": ("x", y_a)}, dims="x")
...: arr2 = xr.DataArray(data=b, coords={"x": x_b, "y": ("x", y_b)}, dims="x")
...:
...: xr.Dataset({"a": arr1, "b": arr2})
...
MergeError: conflicting values for variable 'y' on objects to be combined. You can skip this check by specifying compat='override'.
I can work around this by calling:
|
{ "url": "https://api.github.com/repos/pydata/xarray/issues/4095/reactions", "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
13221727 | issue |