Python module for reading/writing GRIB files
Project description
Python module for reading and writing GRIB files (edition 1 and edition 2).
GRIB is the World Meteorological Organization (WMO) standard file format for the exchange of weather data.
Provides a high-level interfaces for the ECWMF ECCODES C library and the NCEP grib2 C library, including command line utilities for listing (grib_list) and repacking (grib_repack) GRIB files.
Quickstart:
-
Clone the github repository, or download a source release from https://pypi.python.org/pypi/pygrib.
-
install dependencies (eccodes library, numpy, pyproj). On linux, this can be done via
pip install numpy pyproj; sudo apt-get install libeccodes-dev
. -
Copy
setup.cfg.template
tosetup.cfg
, open in text editor, follow instructions in comments for editing. -
Run
python setup.py build
-
Run
python setup.py install
(with sudo if necessary) -
Run
python test.py
to test your pygrib installation.
For full installation instructions and API documentation, see https://jswhit.github.io/pygrib.
Sample iPython notebooks illustrating pygrib usage:
- http://nbviewer.jupyter.org/gist/jswhit/8635665
- https://github.com/scollis/HRRR/blob/master/notebooks/HRRR%20Grib.ipynb
Questions or comments - contact Jeff Whitaker jeffrey.s.whitaker@noaa.gov or use https://github.com/jswhit/pygrib/issues.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.