Skip to main content

Experimental pure Python version of eccodes

Project description


:warning: This is an experimental project: do not use in operations. The code has only been tested on a handful of GRIB files.

This is an experiment of a pure Python GRIB decoder based on eccodes. The code is automatically generated from the definition files and tables.

The package does not support encoding.

The difference with other Python bindings are:

  • All arrays and lists are returns as numpy arrays
  • Missing data values are set to numpy.NaN
  • Asking for a missing key is not an error. The value None is returned
  • If a key returns a missing value (e.g. 255), None is returned instead

You can use pyeccodes with cfgrib with a version greater or equal to

Accessing data values:

from pyeccodes import Reader

reader = Reader("test.grib")

for grib in reader:

To get a list of all available keys:

from pyeccodes import Reader

reader = Reader("test.grib")
grib = next(reader)

Project details

Download files

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

Files for pyeccodes, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pyeccodes-0.1.1.tar.gz (1.5 MB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page