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

Home » Public Forums » archive » Reading in data question
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 in data question [message #66145] Thu, 16 April 2009 17:47
tomandwilltamu08 is currently offline  tomandwilltamu08
Messages: 4
Registered: September 2008
Junior Member
Hi IDL gurus,

I am having a hard time thinking of how to read in the following
data... Its an ascii file. It has hundreds of sections with a title,
then a table of numbers, then another string with a different table of
a different size like so:

One name
1 42 3.14 Blah
2 77 4.13 String

Another name
1 11 1.34 String
2 22 1.43 Blah
3 33 3.41 String

Third name
1 44 1.23 Something
2 55 2.34 String
3 66 3.45 String
4 77 4.56 String
5 88 5.67 String

...... and there are hundreds of these . The number of columns is
fixed, but the number of rows is variable.

What would be a good way to read this in in IDL? Is there a good way
that I could read them in one by one? I obviously can't specify the
number of rows of each array a priori, but I could possibly specify
the total number of arrays ahead of time.

Any help or suggestions would be great! I'm a newbie, so don't be shy
to give me very basic explanations. Thanks in advance!

Cheers,
Will
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: How can I know all the information of a CDF file?
Next Topic: JBIU v1.3

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

Current Time: Wed Oct 08 18:40:33 PDT 2025

Total time taken to generate the page: 0.00413 seconds