Skip to content

jswhit/pygrib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a69fb89 · Jan 25, 2025
Jul 3, 2024
Jan 16, 2024
Nov 20, 2013
Nov 7, 2022
Dec 25, 2024
Jul 2, 2024
Apr 18, 2016
Nov 16, 2023
Jul 4, 2024
Dec 7, 2020
Nov 3, 2023
Nov 16, 2023
Jul 2, 2024
Nov 16, 2023

Repository files navigation

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 pip install -e . (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:

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