Re: PV-Wave, Fortran & Windows NT [message #11492 is a reply to message #11490] |
Thu, 02 April 1998 00:00   |
wmc
Messages: 117 Registered: February 1995
|
Senior Member |
|
|
In article 16450809@feda01.fed.ornl.gov, greenwoodde@feda01.fed.ornl.gov (Dave Greenwood) writes:
> I apologize for posting such a trivial question, but I don't have access
> to a system with PV-Wave and I'm trying to help a friend who claims to
> have only limited programming skills at best. My friend has a file
> written from PV-Wave (v6.1) on a Windows NT system and wants to read
> that file using a Fortran (Digital Visual Fortran 5.0) program.
Fortran puts (when writing, and expects, when reading) a word containing the
length of the record at the start and end of each unformatted record (at least,
is does on unix). Running IDL (/PVWAVE) on unix you use "/f77" on the openw
command (tell your friend to read the manual for "open") but the manual *claims*
this is a unix-only command, though why its not available on windows I'm not sure.
You could explicitly write the length info that fortran expects, though this is
messy. Another problem you may have is: why do you expect binary compatibility
between windows and unix?
All in all, you're probably better off writing out the data formatted, unless there
is really huge amounts of it.
- William
---
William M Connolley | wmc@bas.ac.uk | http://www.nbs.ac.uk/public/icd/wmc/
Climate Modeller, British Antarctic Survey | Disclaimer: I speak for myself
|
|
|