Re: READU problems in IDL 4.0.1 for Windows [message #5528 is a reply to message #5523] |
Mon, 15 January 1996 00:00  |
Jackel
Messages: 30 Registered: April 1993
|
Member |
|
|
In article <4dcaag$n3t@newsstand.cit.cornell.edu> tmh8@cornell.edu (Tom Hamill) writes:
> I have been experiencing very odd flaky performance with the READU
> routine in certain circumstances. I use a Fortran program to generate binary
> format files readable by the IDL routine READU. For all files I create, I am
> also able to read them as format binary back into a Fortran program.
> However, in certain situations which do not appear to follow any pattern, the
> IDL routine READU will not be able to fully read some of these binary
> formatted files; it comes back with an error message saying "end of file
> encountered". Does this ring a bell with anyone? Is this a known IDL
> problem, and does anyone have a workaround?
You don't mention which "Windows" you're using, but we've run across this
with Windows95. The symptoms were as you described, and the problem
appears to be with IDL's buffering of input data. If you set the keyword
BUFSIZE=0 (which disables I/O buffering) then everything works again. We
noticed this by checking the FSTAT() of the file, and seeing that it "ran out
of data" at 2048 bytes (not sure of this number) every time, regardless of the
actual file size.
> Thanks. RSVP by e-mail unless you think the answer may be of general
> interest.
There may be others out there who're experimenting with Win95. Good luck.
|
|
|