eccodes/python
Shahram Najm 418157db49 ECC-1231: Python bindings: Remove the experimental high-level interface 2021-04-11 17:07:02 +01:00
..
eccodes ECC-1231: Python bindings: Remove the experimental high-level interface 2021-04-11 17:07:02 +01:00
gribapi
CMakeLists.txt
Makefile.am
README
README.swig
compare_iterator_values.sh
create_errors.py.sh
dummy.am
extrules.am
grib_errors.h
grib_interface.c
grib_interface.h
gribapi.c
gribapi_swig.i
gribapi_swig.py
numpy.i
run_tests.sh
setup.py.autotools.in
setup.py.in ECC-1231: Python bindings: Remove the experimental high-level interface 2021-04-11 17:07:02 +01:00
swig_wrap_numpy.c
swig_wrap_numpy.py
test_extra.py
test_general.py
test_index.py
test_iterator.py
test_keysiterator.py

README

ecCodes Python bindings

In order to enable the Python bindings in the build,
use the -DENABLE_PYTHON=ON in the cmake step:

  cmake /path/to/src -DENABLE_PYTHON=ON

This will enable the build of the Python bindings with 
NumPy support enabled. Python needs to be in the path
and, of course, the NumPy package installed.

On 'make install', the Python bindings will be installed under
'${ecCodes_install_dir}/lib/pythonX.X/site-packages/eccodes',
where X.X is the version of python used to build the bindings.
Add this folder to your PYTHONPATH and you are ready to go.