Reading in data question [message #66145] |
Thu, 16 April 2009 17:47 |
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
|
|
|