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

Home » Public Forums » archive » Input line too long???
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: Input line too long??? [message #20760 is a reply to message #20682] Thu, 20 July 2000 00:00 Go to previous messageGo to previous message
David Bowman is currently offline  David Bowman
Messages: 10
Registered: July 2000
Junior Member
[[ This message was both posted and mailed: see
the "To," "Cc," and "Newsgroups" headers for details. ]]

Pavel,
Thanks, that worked like a charm! Is there any way of doing the
same operation when the records are not all of the same length? Just
curious.

david




In article <3975D9F7.7B28AC1B@cmdl.noaa.gov>, Pavel Romashkin
<promashkin@cmdl.noaa.gov> wrote:

> Hi David,
> I played with your example and I think I have a solution. The input
> buffer limitation is only in effect if you read formatted. I made a file
> by repeating your example line 2000 times, obtaining 10000 element line.
> Each record in your line is 8 bytes long, including a space. Try reading
> unformatted and it works perfectly:
>
> ; Make fake data file with 1 line
> ; with 10000 data entries and open it.
> openr, unit, 'test.txt', /get_lun
> ; Since you know the number of data points, make X:
> x = strarr(10000)
> ; Fill X with 8 byte strings.
> x[*] = '12345678'
> readu, unit, x
>
> Now you can convert X into float and use it.
> Cheers,
> Pavel
>

--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- =-=-=-=-=-=-=-=-=
David Bowman "Smash forehead on keyboard to continue."
Laboratoire Tectonique
Institut de Physique du Globe - Paris
4 Place Jussieu
75252 Paris Cedex 05
France
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: keyword issue (top 10 IDL request?)
Next Topic: pointers in IDL and C

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

Current Time: Sun Oct 12 10:33:20 PDT 2025

Total time taken to generate the page: 1.27796 seconds