Pass FORTRAN variable to Python [migrated]
- by Matthew Bilskie
I have a FORTRAN program that is called from a Python script (as an ArcGIS tool). I need to pass an array, Raster_Z(i,j), from FORTRAN to python.
I have read about the Python subprocess module; however, I have not had much luck in understanding how to do this with FORTRAN. All examples I have found involve simple unix command line calls and not actual programs.
Has anyone had any experience in passing a variable from FORTRAN to Python via a memory PIPE?
Thank you for your time.