Skip to main content

pyeccodes

⚠️ 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 0.9.8.1.

Accessing data values:

from pyeccodes import Reader

reader = Reader("test.grib")

for grib in reader:
    print(grib.get('date'))
    print(grib.get('values'))

To get a list of all available keys:

from pyeccodes import Reader

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

Metadata

Release files for pyeccodes 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyeccodes 0.1.1
File Size Uploaded Provenance Actions
pyeccodes-0.1.1.tar.gz 1.5 MB Without provenance Details for pyeccodes-0.1.1.tar.gz

Release files / pyeccodes-0.1.1.tar.gz

Download URL pyeccodes-0.1.1.tar.gz
Size 1.5 MB
Tags Source
SHA-256 checksum
How to use checksums
b5b5e62b8ea3fcd069caa0dec48d7f67889a6eadf198e015ec029839935fe596
BLAKE2b-256 checksum
How to use checksums
171241637bfd719af54980495af5f080fb566803f26865e149660c1ac8b0b01a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.1 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.7

Security for pyeccodes 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page