Open Tonow opened 2 years ago
For information:
they is a problem only for the second dimension this example works well
6| x4 x4 x4
5| x4 x4 x4
4| x4 x4 x4
3| x3 x3 x3
2| x3 x3 x3
1| x3 x3 x3
----------------
10 20 30 40
x3 = xr.Dataset(
{
"temperature": (("y", "x"), 20 * np.random.rand(9).reshape(3, 3)),
"precipitation": (("y", "x"), np.random.rand(9).reshape(3, 3)),
},
coords={"y": [20, 30, 40], "x": [1, 2, 3]},
)
x4 = xr.Dataset(
{
"temperature": (("y", "x"), 20 * np.random.rand(9).reshape(3, 3)),
"precipitation": (("y", "x"), np.random.rand(9).reshape(3, 3)),
},
coords={"y": [10, 20, 30], "x": [4, 5, 6]},
)
ds_test = xr.combine_by_coords([x3, x4])
ds_test.temperature.plot()
Potentially related: #4824 (especially https://github.com/pydata/xarray/issues/4824#issuecomment-841244252)
What happened?
When I try to do a
combine_by_coords
on 2 datasets x, y likex1
looks like:x2
Looks like:I have this issue after a
What did you expect to happen?
For me the result of
ds_test
should be like:Minimal Complete Verifiable Example
Relevant log output