concat documentation #8224
Unanswered
ivorblockley
asked this question in
Q&A
Replies: 1 comment
-
I think yes, this definitely could be clarified. We would welcome a PR to do so if you are interested! Another place to update with the clarification might be on the terminology page. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It is currently documented that each object to be concatenated via
xarray.concat()
:While this might be the ideal, I'm wondering if this statement is misleading as clearly
concat
supports multiplejoin
methods, with the default "outer" method able to handle variables/coordinates of differing shapes, preserving all the coordinates.Should the documentation be updated to better clarify requirements of input
objs
?For the sake of clarity, here is a simple example of xr.concat correctly handling DataArrays with different shapes along the non-concatenated dimension:
da_list
has two DataArrays with different shapes:A
xr.concat(da_list, dim="time", join="outer")
yields an intuitive result:Beta Was this translation helpful? Give feedback.
All reactions