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

Home » Public Forums » archive » Re: Reading large Ascii files
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Reading large Ascii files [message #27631] Tue, 30 October 2001 09:24 Go to previous message
Craig Markwardt is currently offline  Craig Markwardt
Messages: 1869
Registered: November 1996
Senior Member
"Martin Downing" <martin.downing@ntlworld.com> writes:

> Isa,
> I cant reproduce your problem,
> here is the output I get from the code below which does outpur/input of
> 12500 floats in one line
> print, !version
>
> { x86 Win32 Windows Microsoft Windows 5.5 Beta Jun 20 2001 32 64}
>
> IDL> ascii_io_large_test
> values read incorrectly = 0
> line length read = 100000

Hi Isa--

Your problem is definitely the lack of ability of your IDL version to
read strings longer than 32767 characters. If you are stuck with your
existing version of IDL, then you will have to do something else, like
READU to read the data in, and then parse it in memory.

The reason Martin's example worked was that he was using IDL 5.5.
According to the release notes for IDL 5.5, the 32767 character limit
for strings was lifted, so you wouldn't have that particular problem
if you upgraded. Now if you have a Mac and need long strings then you
might be in trouble...

Craig

--
------------------------------------------------------------ --------------
Craig B. Markwardt, Ph.D. EMAIL: craigmnet@cow.physics.wisc.edu
Astrophysics, IDL, Finance, Derivatives | Remove "net" for better response
------------------------------------------------------------ --------------
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Hypergeometric functions
Next Topic: Re: Resolution

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

Current Time: Fri Oct 10 10:30:53 PDT 2025

Total time taken to generate the page: 0.16109 seconds