eccodes/python
Shahram Najm 02e934b688 Copyright updated 2019-04-15 14:44:45 +01:00
..
eccodes Add CODES_PRODUCT_GTS 2019-03-19 16:00:07 +00:00
gribapi Add CODES_PRODUCT_GTS 2019-03-19 16:00:07 +00:00
CMakeLists.txt ECC-494 Python: output commands before running them 2017-06-15 13:54:09 +01:00
Makefile.am Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
README Update URLs 2019-01-28 12:47:22 +00:00
README.swig PYTHON3 - document how we generate the swig files ECC-264 2018-10-05 15:20:35 +01:00
compare_iterator_values.sh Ported grib_api 1.10.4 from p4 to git 2013-03-25 12:04:10 +00:00
create_errors.py.sh Change error description: memory allocation error 2016-12-15 11:51:47 +00:00
dummy.am Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
extrules.am Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
grib_errors.h Change error description: memory allocation error 2016-12-15 11:51:47 +00:00
grib_interface.c Copyright updated 2019-04-15 14:44:45 +01:00
grib_interface.h Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
gribapi.c Copyright updated 2019-04-15 14:44:45 +01:00
gribapi_swig.i Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
numpy.i Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
run_tests.sh Ported grib_api 1.10.4 from p4 to git 2013-03-25 12:04:10 +00:00
setup.py.autotools.in Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
setup.py.in Update URLs 2019-01-28 12:47:22 +00:00
swig_wrap_numpy.c Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
swig_wrap_numpy.py Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
test_extra.py Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
test_general.py Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
test_index.py Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
test_iterator.py Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00
test_keysiterator.py Python3: Enable Python 2 to work as before 2018-11-23 19:11:47 +00:00

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.