Need help with pygrib?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

jswhit
228 Stars 76 Forks MIT License 1.1K Commits 59 Opened issues

Description

Python interface for reading and writing GRIB data

Services available

!
?

Need anything else?

Contributors list

Install and Test Status PyPI package Anaconda-Server Badge DOI

Provides a high-level interface to the ECWMF ECCODES C library for reading GRIB files. There are limited capabilities for writing GRIB files (you can modify the contents of an existing file, but you can't create one from scratch). See the online docs for example usage.

Quickstart

The easiest way to get everything installed is to use pip:

pip install pygrib

You can also use conda:

conda install -c conda-forge pygrib

Alternately, clone the github repo and run

python setup.py install
(after setting
$ECCCODES_DIR
) where
$ECCODES_DIR
is the path to the directory containing
include/grib_api.h
and
lib/libeccodes.so
. If
ECCODES_DIR
is not specified, a few common locations such as
$CONDA_PREFIX,/usr,/usr/local,/opt/local
will be searched.

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 [email protected] or use https://github.com/jswhit/pygrib/issues.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.