Let's assume we do have multiple values with assigned coordinates:
a = []
a.append(xr.DataArray([[5.]], dims=('x', 'y'), coords=dict(x=[1.],y=[2.])))
a.append(xr.DataArray([[1.]], dims=('x', 'y'), coords=dict(x=[2.],y=[2.])))
a.append(xr.DataArray([[2.]], dims=('x', 'y'), coords=dict(x=[1.],y=[1.])))
I now want to combine all DataArrays in a into one single new DataArray with combined coordinates. I.e. the three values 5, 1, 2 with the coordinates assigned. Not provided (missing) values could be filled with anything (0, None, …).
If I would do this operation along one axis, I'd use concatenate, but what should I do in the case of multiple dimensions? Thanks a lot in advance for your kind help!