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

Add GRIB Reader #283

Merged
merged 9 commits into from May 9, 2018
Merged

Add GRIB Reader #283

merged 9 commits into from May 9, 2018

Conversation

djhoese
Copy link
Member

@djhoese djhoese commented May 4, 2018

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:

@djhoese djhoese added enhancement code enhancements, features, improvements component:readers labels May 4, 2018
@djhoese djhoese added this to the v0.9 milestone May 4, 2018
@djhoese djhoese self-assigned this May 4, 2018
@djhoese djhoese requested a review from mraspaud May 4, 2018 21:27
import os
import sys
import numpy as np
import xarray as xr
Copy link
Contributor

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
Copy link
Contributor

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

@coveralls
Copy link

coveralls commented May 5, 2018

Coverage Status

Coverage increased (+0.2%) to 65.408% when pulling 65fceec on djhoese:feature-grib-reader into 52e677c on pytroll:develop.

@codecov-io
Copy link

codecov-io commented May 5, 2018

Codecov Report

Merging #283 into develop will increase coverage by 0.23%.
The diff coverage is 87.11%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
satpy/tests/test_readers.py 98.38% <100%> (+0.03%) ⬆️
satpy/tests/reader_tests/test_geocat.py 96.22% <100%> (ø) ⬆️
satpy/readers/__init__.py 94.75% <100%> (+0.22%) ⬆️
satpy/dataset.py 78.35% <100%> (ø) ⬆️
satpy/tests/reader_tests/__init__.py 96.29% <100%> (+0.14%) ⬆️
satpy/tests/reader_tests/test_clavrx.py 95.83% <100%> (ø) ⬆️
satpy/tests/reader_tests/test_hdf5_utils.py 92.53% <50%> (-4.24%) ⬇️
satpy/tests/reader_tests/test_hdf4_utils.py 92.06% <50%> (-4.49%) ⬇️
satpy/tests/reader_tests/test_netcdf_utils.py 93.24% <50%> (-3.86%) ⬇️
satpy/readers/grib.py 85.36% <85.36%> (ø)
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 52e677c...65fceec. Read the comment docs.

@djhoese djhoese merged commit 09d4f02 into pytroll:develop May 9, 2018
@djhoese djhoese deleted the feature-grib-reader branch May 9, 2018 15:52
@djhoese djhoese mentioned this pull request May 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:readers enhancement code enhancements, features, improvements
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants