Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upcombine_by_coords fails with DataArrays #3248
Comments
|
+1 we should make this work! |
|
@dcherian is this a |
|
What do you think of:
So really it's just (1) that needs a special case in the combine functions? |
|
Some additional information on the topic: Combining named 1D data arrays works.
However, when combining 2D gridded data...
...the method fails, despite passing a data variable name.
Again, converting to a dataset bypasses the issue.
|
|
Thanks @friedrichknuth . It looks like all the It should be relatively easily to make this work like Lines 593 to 602 in 756c941
Can you send in a PR? |


MCVE Code Sample
To get what I want, I need
xr.combine_by_coords([da1.to_dataset(name='a'), da2.to_dataset(name='a')]).aI think the issue is that the code uses
to_datasetinstead of_to_temp_dataset