-
Notifications
You must be signed in to change notification settings - Fork 77
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
Fix in extra_coords #238
Fix in extra_coords #238
Conversation
Codecov Report
@@ Coverage Diff @@
## master #238 +/- ##
==========================================
+ Coverage 92.24% 92.33% +0.08%
==========================================
Files 25 25
Lines 1754 1774 +20
Branches 206 209 +3
==========================================
+ Hits 1618 1638 +20
Misses 112 112
Partials 24 24
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggested a few style fixes. LGTM otherwise.
This PR fixes two bugs on the
extra_coords
keyword:Currently it is not possible to use
extra_coords
with the new cfgrib-xarray interface (xarray_plugin.py
). I have addedextra_coords
in the new interface to fix it.If the user tries to read an extra coordinate with a scalar dimension, cfrgib returns an empty coordinate and xarray raise an error because the coordinates and dimensions are not consistent.
old behaviour:
new behaviour: