comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Reading F77 on Windows platforms
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Reading F77 on Windows platforms [message #30433] Wed, 24 April 2002 04:52
sso is currently offline  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
[Message index]
 
Read Message
Previous Topic: Missing NOFILL Keword in CW_DEFROI
Next Topic: Re: Missing NOFILL Keword in CW_DEFROI

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 02:53:20 PDT 2025

Total time taken to generate the page: 2.48240 seconds