Skip to content
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

Make coordinate detection more robust #3437

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Conversation

dopplershift
Copy link
Member

Description Of Changes

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.

Checklist

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.
@dopplershift dopplershift added Type: Enhancement Enhancement to existing functionality Area: Xarray Pertains to xarray integration labels Mar 14, 2024
@dopplershift dopplershift requested review from jthielen and a team as code owners March 14, 2024 23:52
@dopplershift dopplershift requested review from dcamron and removed request for a team March 14, 2024 23:52
@dcamron dcamron merged commit 0ed75dc into Unidata:main Mar 21, 2024
38 checks passed
@github-actions github-actions bot added this to the 1.7.0 milestone Mar 21, 2024
@dopplershift dopplershift deleted the fix-3416 branch March 21, 2024 18:48
@dopplershift dopplershift modified the milestones: 1.7.0, 1.6.2 Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Xarray Pertains to xarray integration Type: Enhancement Enhancement to existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

mpcalc.isentropic_interpolation_as_dataset "vertical attribute is not available."
2 participants