Skip to content

Instantly share code, notes, and snippets.

@pelson
Last active April 14, 2021 15:39
Show Gist options
  • Save pelson/9763057 to your computer and use it in GitHub Desktop.
Save pelson/9763057 to your computer and use it in GitHub Desktop.
Sorting an Iris cube by coordinate.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pelson
Copy link
Author

pelson commented Apr 14, 2021

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...

@pelson
Copy link
Author

pelson commented Apr 14, 2021

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