Skip to main content

Python module for reading/writing GRIB files

Project description

Linux Build 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.

Quickstart

The easiest way to get everything installed is to use the conda:

conda install -c conda-forge pygrib

If you don't use conda, be sure you have the required dependencies installed first. Then, install cftime with pip:

ECCODES_DIR=path/to/eccodes pip install pygrib

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..

Alternately, clone the github repo and run python setup.py install (after setting $ECCCODES_DIR). Run python test.py from the source directory to test your pygrib installation.

For full installation instructions and API documentation, see https://jswhit.github.io/pygrib.

Sample iPython notebooks illustrating pygrib usage:

Questions or comments - contact Jeff Whitaker jeffrey.s.whitaker@noaa.gov or use https://github.com/jswhit/pygrib/issues.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pygrib-2.1.tar.gz (21.4 MB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page