Last active
April 14, 2021 15:39
-
-
Save pelson/9763057 to your computer and use it in GitHub Desktop.
Sorting an Iris cube by coordinate.
I like finding answers to questions that I wrote many years ago. That still work today! 🎉
Just wish I'd implemented multiple coordinate sorting, not just one...
I guess it would work just as well to split the cube into single length items on the dimension to sort then to merge them together again...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
FWIW to upcast the cube's new coordinate to a DimCoord (such that when saving NetCDF the dimension name comes from the coord's var_name) one would need to do: