Fortran array in python (f2py?)...

MRAB google at mrabarnett.plus.com
Fri Feb 13 13:27:00 EST 2009


tripp wrote:
> Hello Folks,
> 
> I have a fortran program I use to process several satellite images.  I
> currently output the results to a text file (~750 mb) which is then
> read by a perl program that outputs a GIS-ready image using GDAL
> (www.gdal.org).   There are python libraries for GDAL too.
> 
> I'd like to pipe the array directly to python from fortran (instead of
> writing it out to a text file).  Is it possible to access an in-memory
> fortran array with python?
> 
> I've looked at f2py, but I could not tell if this was possible.
> 
How about outputting the results to the Python program via a pipe?



More information about the Python-list mailing list