Replies: 1 comment
-
ref #1739 |
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
-
My dataset has 3 dimensions in the order
(time, y, x)
and I useapply_ufunc
to apply a computation along thetime
dimension. This rearranges the order of the dimensions as(y, x, time)
. I need to restructure the xarray so its in the(time, y, x)
order as the original dataset. How would I go along doing this?Here is a visual description of what's happening:
Before:
as expected
time
is moved to the last dimension:How do I rearrange this so that its in the order of the original array? Are there parameters that prevent apply_ufunc from moving the dims?
Beta Was this translation helpful? Give feedback.
All reactions