Rearrnaging dimensions of full dataset #5831
Replies: 2 comments 3 replies
-
Hi Anne, I think that the Also, if |
Beta Was this translation helpful? Give feedback.
-
Hi @benbovy, apparently in xarray version 0.18.2 the display is shown in alphabetical order but in version 0.19.0 the order is shown in the actual order. In my case (time:513, latitude: 1138, longitude: 1634). So no rearrangement needed. Cheers |
Beta Was this translation helpful? Give feedback.
-
Hi,
Many calculation processes take long because the dimensions are arranged in an unfavourable way. So my idea is to rearrange it.
Here is what I have:
and this is what I need:
I tried ds.transpose but it is just transposing the data variables but not the actual file dimension order.
Also I tried to create a new dataset with setting the dimensions and coords accordingly, but this takes as long as calculating directly on these data.
I very much appreciate any hints.
Thanks
Anne
Beta Was this translation helpful? Give feedback.
All reactions