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 the conda:
conda install -c conda-forge pygrib
If you don't use conda, be sure you have the ECCODES library installed first. Then you can install pygrib 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:
- 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.
Metadata
Release files for pygrib 2.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pygrib-2.1.1.tar.gz | 22.9 MB | Details |
Release files / pygrib-2.1.1.tar.gz
| Download URL | pygrib-2.1.1.tar.gz |
|---|---|
| Size | 22.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
26679c6c50c7e7e33ab270048c67097b193f295008bbd5d83075903921a18d77
|
|
BLAKE2b-256 checksum How to use checksums |
6b17e1bc982350473406db851ec9ea8148086e68a68ebdaa805fca12d61ef708
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.2 pkginfo/1.4.2 requests/2.25.0 setuptools/50.3.1 requests-toolbelt/0.9.1 tqdm/4.37.0 CPython/3.7.9
|