-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add a GRIB backend via ECMWF cfgrib / ecCodes #2476
Merged
shoyer
merged 29 commits into
pydata:master
from
alexamici:feature/grib-support-via-cfgrib
Oct 17, 2018
+162
−8
Merged
Changes from 4 commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
72606f7
Integration of ECMWF cfgrib driver to read GRIB files into xarray.
alexamici 71fcbe7
Remove all coordinate renaming from the cfgrib backend.
alexamici 6faa7b9
Move flavour selection to `cfgrib.Dataset.from_path`.
alexamici 1469a0e
Sync xarray backend import style with xarray.
alexamici 12811e8
Make use of the new xarray.backends.FileCachingManager.
alexamici a4409b6
Add just-in-case locking for ecCodes.
alexamici 80b8788
Explicitly assign attributes to CfGribArrayWrapper
alexamici 9dfd660
Add missing locking in CfGribArrayWrapper and use explicit_indexing_a…
alexamici edc4e85
Add a comment about the ugly work-around needed for filter_by_keys.
alexamici 9b5335a
Declare correct indexing support.
alexamici 186a504
Merge branch 'upstream' into feature/grib-support-via-cfgrib
alexamici 485a409
Add TestCfGrib test class.
alexamici 81f18c2
cfgrib doesn't store a file reference so no need for CachingFileManager.
alexamici 5dedb3f
Add cfgrib testing to Travis-CI.
alexamici 831ae4f
Naming.
alexamici 6372e6e
Fix line lengths and get to 100% coverage.
alexamici 8e9b2e3
Add reference to *cfgrib* engine in inline docs.
alexamici 07b9469
First cut of the documentation.
alexamici 340720a
Tentative test cfgrib under dask.distributed.
alexamici 4d84f70
Better integration test.
alexamici 0b027db
Remove explicit copyright and license boilerplate to harmonise with o…
alexamici a4ead54
Add a usage example.
alexamici ec80d86
Fix code style.
alexamici f30b7d0
Fix doc style.
alexamici 223d25c
Fix docs testing. The example.grib file is not accessible.
alexamici 2ef993f
Merge remote-tracking branch 'upstream/master' into feature/grib-supp…
alexamici bbf01e3
Fix merge in docs.
alexamici da2b9dd
Fix merge in docs.
alexamici eda96a4
Fix doc style.
alexamici File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
If
example.grib
doesn't actually exist when we build the docs, this will give a nasty error message. It would be better to use a:verbatim:
directive here -- scroll open to the opendap examples to see what that looks like.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.
Ouch! I noticed that there was no docs testing in Travis-CI and wondered if you where testing the docs at all. I should have built the docs myself. What is the intended way do you build the docs?
python sertup.py build_sphinx
fails on my setup due to missingnumpydoc
.I'm fixing it as you suggest.
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 added the
:verbatim:
directive, but I was not able to test the build of the documentation due to several errors when building the gallery (a number of core dump in GEOS, maybe due to the setup on my MacOS).The fix looks trivial enough that it may work.
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 think this would work:
We actually do test the doc build on Travis-CI, but unfortunately there's no easy way to see generated docs and also errors in
ipython
directive blocks don't stop the build (there's a bug we filed about this somewhere).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.
Fixed. I mis-read the example.