How to stack several DataArrays of the same shape? #7532
Unanswered
johann-petrak
asked this question in
Q&A
Replies: 1 comment 8 replies
-
Hi Johann - have you tried Our page on combining data will also be useful here. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a list of (thousands of) DataArrays which all have the same shape (r,c) same dimensions, and same coordinates for dimension 1, but different coordinates for dimension 0.
Is there a way/function to combine these into a single 3-dimensional DataArray, so that I can get back each of the original 2-dimensional arrays by indexing along the new dimension?
It would be especially useful if this method of combining the original DataArrays could also combine the coordinates for dimension 0 in such a way that I get those back properly as well.
Beta Was this translation helpful? Give feedback.
All reactions