Stream: python-questions
Topic: xarray DataSet dimensions
Stephen Yeager (Sep 07 2021 at 17:29):
Why are xarray Dataset dimensions not transposable? xarray.Dataset.transpose changes the dimension order for each array, but not for the dataset itself. I don't see any way to re-order dataset dimensions, which is sometimes desirable.
Deepak Cherian (Sep 07 2021 at 19:11):
The dimension order for a dataset is meaningless because the DataArrays in a Dataset can have a different dimension order.
dataset dimensions, which is sometimes desirable.
What are you trying to do?
Stephen Yeager (Sep 07 2021 at 21:49):
Turns out that what I was trying can be accomplished using DataArray dimensions, but I still find it aesthetically unpleasing that when I transpose a Dataset to convert DataArray dimensions to have a certain order (Y,L,M,ncol), the Dataset dimensions won't necessarily reflect my preference (Y,L,ncol,M).
Last updated: Jan 30 2022 at 12:01 UTC