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 
Switch to threaded view of this topic 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
  Switch to threaded view of this topic Create a new topic Submit Reply
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: Wed Oct 08 18:36:19 PDT 2025

Total time taken to generate the page: 0.00603 seconds