Discussion:
How to best use data created by Fortran (f90)
(too old to reply)
Ch. Konig
2008-03-13 16:02:14 UTC
Permalink
Hi there,

I'm crunching and then writing out numbers using Fortran routines
(f90) that I later want to look at (and make plots etc.) with Octave.

What's the best way of doing that?

I'm currently writing out text files from within the Fortran routines,
but with bigger matrices (esp. more columns) that seems to run into
problems. Also that's not very efficient in terms of disk space usage.

Can 'Unformatted' output be used by Octave? How?

Thanks for any help.

Chris


PS: Not sure if this should rather be posted on the Fortran newsgroup.
Let me know if you do think so.
Thomas Plehn
2008-03-14 16:01:59 UTC
Permalink
Post by Ch. Konig
Hi there,
I'm crunching and then writing out numbers using Fortran routines
(f90) that I later want to look at (and make plots etc.) with Octave.
What's the best way of doing that?
I'm currently writing out text files from within the Fortran routines,
but with bigger matrices (esp. more columns) that seems to run into
problems. Also that's not very efficient in terms of disk space usage.
Can 'Unformatted' output be used by Octave? How?
Thanks for any help.
Chris
PS: Not sure if this should rather be posted on the Fortran newsgroup.
Let me know if you do think so.
Octave can read lots of data types corresponding to the C language. They
are automatically converted to the internal representation.
Perhaps you can write your data matrices as an array of doubles. This
can be efficiently read and reshaped into a n by m matrix in octave
representation.

see here
http://www.gnu.org/software/octave/doc/interpreter/Binary-I_002fO.html
Loading...