Fortran to Python
Creating Wrapper Function for Ezseg Algorithm
How to create a wrapper function for Fortran code:
more information can be found here
- 1.)
python -m numpy.f2py ezseg.f -m ezsegwrapper -h ezseg.pyf
- creates
ezseg.pyf
file with ezsegwrapper function
- creates
- 2.)
cp ezseg.pyf ezsegwrapper.pyf
- copy file and update to be python compatible
- 3.)
python -m numpy.f2py -c ezsegwrapper.pyf ezseg.f
- creates shared module
ezsegwrapper.so
- creates shared module