-
yields Since it's labeled SortedKeysDict, I expected the same ordering as shown, but when I call I get: which is different from the provided, transposed order If I subset a DataArray, it's correct: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
sorry for the late reply, @ahuang11. To me the the name The difficulty with In order to completely avoid that somewhat complex decision, the |
Beta Was this translation helpful? Give feedback.
sorry for the late reply, @ahuang11.
To me the the name
SortedKeysDictimplies that it is sorted, not ordered (the difference being that – similar to aOrderedDict– "ordered" follows the order of insertion while "sorted" is sorted somehow, in this case alphabetically).The difficulty with
Datasetdimensions is that the order has no actual meaning: consider aDatasetwith three variables, one with the dimensions("x", "y"), the second("x", "t")and the other("z", "t"). Which order should we use for those?In order to completely avoid that somewhat complex decision, the
Datasetdimensions are always sorted alphabetically, while forDataArray(or the semi-internalVariable) the order does…