home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / fortran / 4266 < prev    next >
Encoding:
Internet Message Format  |  1992-11-10  |  1.7 KB

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