Re: Fortran array in python (f2py?)...

2009-02-14 Thread Scott David Daniels
tripp wrote: ... dump the arrays to a binary file (much faster than dumping it to a text) > from the fortran program How well does python handle binary files? Maybe I could skit the f2py all together if I can get python to read the fortran binary file... Likely your best plan. Look int

Re: Fortran array in python (f2py?)...

2009-02-14 Thread Kurt Smith
On Sat, Feb 14, 2009 at 2:06 PM, tripp wrote: > OK. It sounds like it would be easiest for me, then, to dump the > arrays to a binary file (much faster than dumping it to a text) from > the fortran program. Then use f2py to load a fortran module to read > it.?. I've done something similar and

Re: Fortran array in python (f2py?)...

2009-02-14 Thread tripp
OK. It sounds like it would be easiest for me, then, to dump the arrays to a binary file (much faster than dumping it to a text) from the fortran program. Then use f2py to load a fortran module to read it.?. How well does python handle binary files? Maybe I could skit the f2py all together if I

Re: Fortran array in python (f2py?)...

2009-02-13 Thread Robert Kern
On 2009-02-13 11:59, 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

Re: Fortran array in python (f2py?)...

2009-02-13 Thread tripp
On Feb 13, 1:27 pm, MRAB wrote: > 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.or

Re: Fortran array in python (f2py?)...

2009-02-13 Thread MRAB
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 li

Fortran array in python (f2py?)...

2009-02-13 Thread tripp
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