Reading F77 on Windows platforms [message #30433] |
Wed, 24 April 2002 04:52 |
sso
Messages: 13 Registered: February 2002
|
Junior Member |
|
|
I have problems reading F77-unformatted files when running idl on a
Windows 2000
platform. Opening the file (with ,/f77) works, but as soon as I try to
read something, an error message claiming 'corrupted f77 file' shows
up. The program works fine though on a Unix station, so the f77-file
should be ok. According to the manual (for idl 5.5) the F77 should
work both on Unix and Windows.
In Fortran the file is created like this:
open (<unit>,file=<name>, form='unformatted')
write (<unit>) var1, var2, ...
If opening the file in idl without the '/f77' keyword I dont get any
complaints about corrupt file, but I then get problems retrieving the
data. On Unix I am able to trace the file content in 4-bytes words
(word by word) and it looks all fine. On Windows, however, I dont get
the same results. Why??
(Explanation: For example using "point_lun, <unit>, <pos>" followed by
the reading of a variable ("readu,<unit>, <var>") gives a totally
different content of <var> on Unix and Windows...). Does Unix and
Windows treat longword, float or characters differently when reading
unformatted data in idl?
Many thanks for any help!
Sverre
|
|
|