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 GRIB Reader #283
Add GRIB Reader #283
Conversation
import os | ||
import sys | ||
import numpy as np | ||
import xarray as xr |
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.
F401 'xarray as xr' imported but unused
"""Test loading all test datasets""" | ||
pg.open.return_value = FakeGRIB() | ||
from satpy.readers import load_reader | ||
import xarray as xr |
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.
F811 redefinition of unused 'xr' from line 9
Codecov Report
@@ Coverage Diff @@
## develop #283 +/- ##
==========================================
+ Coverage 65.17% 65.4% +0.23%
==========================================
Files 115 117 +2
Lines 14077 14275 +198
==========================================
+ Hits 9174 9337 +163
- Misses 4903 4938 +35
Continue to review full report at Codecov.
|
This adds a very basic/limited GRIB2 reader using pygrib. Once ecCodes from ECMWF is python 3 compatible I will switch to using that. I currently need this for NCEP GFS GRIB files.
TODO:
git diff origin/develop **/*py | flake8 --diff