Skip to content

Python interface for Met.3D

Kameswarrao requested to merge met.3d.internal/met.3d:onlyPyInterface into master

To add python interface support for Met.3D. This needs python3.xx, pybind11, Eigen3 to be installed. The necessary changes for Cmake settings have been made to CMakeLists.txt. The Eigen3 library is a header only library, hence the EIGEN3_INCLUDE_DIR environment variable needs to be set to the path where the Eigen3 has been installed. To test the python interface, a sample python script 'hsec_export.py' has been provided in 'util/'. On building the Met.3D with the new dependencies, the hsec_export.py can be copied into the 'working directory' of Met.3D build and in the MultivariableActor (for example Horizontal section actor )-> variable -> Debug, will export the horizontal section data to python and the python script , here 'hsec_export.py' receives the data and creates an image of the horizontal section.

Resolves #82

Edited by Marc R.

Merge request reports