-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unexpected dim order behavior #9718
Comments
NVMD it shows it correctly after the data var |
This comment has been minimized.
This comment has been minimized.
It does actually do that. |
Isn't the dim order already specified? The behavior seems strange to me. It may be ambiguous with many data vars, but with a single data var it should be pretty clear. I think we often use a single var dataset over dataarray to merge variables or to avoid seeing "xarray_dataarray_variable" names pop up after serializing. |
Datasets does not, and will not, enforce consistency of dimension ordering among dataarrays. So where it does matter, like in |
... and thus
You can assign a name to a unnamed arr.rename("variable") |
Edit: see below for updated request.
Is your feature request related to a problem?
the rest of the scipy ecosystem requires numpy arrays for everything. dim order is the only organization you have in np. it causes tons of issues moving back and forth between xarray and np simply because dimensions are displayed in alphabetical order rather than their actual order.
Describe the solution you'd like
No response
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: