home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!engcon!rodgers
- From: rodgers@engcon.marshall.ltv.com (KMRODGERS)
- Newsgroups: comp.lang.fortran
- Subject: Unformatted Format on PCs
- Summary: what is it
- Message-ID: <1025@engcon.marshall.ltv.com>
- Date: 10 Nov 92 21:37:25 GMT
- Reply-To: rodgers@engcon.UUCP (KMRODGERS)
- Organization: LTV MEG, Dallas, TX
- Lines: 28
-
-
- We use gnuplot here a lot to plot data from simulations, etc. Up until now
- we have been running mostly on Unix boxes. To save space and time both
- reading and writing the data (for simulation time histories, we might have
- 5000 timepoints, with 500 data items per timepoint), we use unformatted
- WRITEs from Fortran. On every Unix box I know of, Fortran unformatted
- files look like
-
- 4-byte int data data data ... data 4-byte int
- 4-byte int data data data ... data 4-byte int
- .
- .
- .
- etc.
-
- It was quite easy to modify gnuplot to read this type of file. Some people
- here would like to run gnuplot on PCompatibles, and would still like to have
- the unformatted read capability. So, . . . does anyone know how most PC
- Fortran compilers write unformatted files? Note that I do not need to
- transport binary files between different platforms, I just need gnuplot on
- a PC to read a Fortran unformatted file produced on a PC. Since our newsfeed
- typically runs several days behind, please email and I will summarize to
- the net. Thanks in advance . . .
-
- ------------------------------------------------------------------------------
- Kevin Rodgers Loral Vought Systems rodgers%engcon@uunet.uu.net
- I only speak (in tongues) for Brother Bob Tilton!
- ------------------------------------------------------------------------------
-