Tip |
---|
Please test the new Python3 interface carefully and provide us with feedback. |
With ecCodes 2.13.0, there is a new Python3 interface based on CFFI (rather than SWIG). This interface is separated into its own package which is available on PyPI (https://pypi.org/project/eccodes-python)
Note: For Python2 there is no change, we are still using SWIG and the interface is bundled in the ecCodes tarball./)
Thanks to B-Open for their contribution.
Warning |
---|
Note: The ecCodes Python 2 interface will be removed in Q1 2023. Users are strongly advised to migrate to Python 3 |
Installation
The Python module depends on the ecCodes library that must be installed on the system and accessible as a shared library.
To install the Python3 bindings, first install ecCodes as usual and then:
Code Block |
---|
$ pippip3 install eccodes-python |
Binary I/O
When opening any BUFR or GRIB files please ensure this happens in binary mode. For example, to open a GRIB file for reading:
...