-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: Make coordinate detection more robust (Fixes #3416)
This works around an issue where some ERA5 data had lat/lon with a "positive" attribute that, according to the CF specification, should indicate a vertical coordinate. We can fix this up by making sure each coordinate variable is only associated with a single option, and making use of Python's key-ordered dictionaries to prioritize the matching order. Having lat be y and lon be x is already handled by a later block.
- Loading branch information
1 parent
8f510ae
commit 4c26973
Showing
2 changed files
with
13 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters