Re: Reading and Plotting big txt. File [message #55118] |
Wed, 01 August 2007 02:46 |
Peter Clinch
Messages: 98 Registered: April 1996
|
Member |
|
|
incognito.me wrote:
> I'm trying to read and plot (surface) a very big text (.txt) file
> (1020, 1024) with a 5 line string Header in IDL. My file looks like a
> circle made of numbers!!!. That means in some lines and colums there
> are no numbers only blanks!!!for example my file contains integers
> between rows 633 and 390 and between columns 650 and 406.At the left
> side of the file, there are the numbers of rows (1023,1022,1021,....0)
> my code should not read, but it does.
It's not a direct help, but if your input file is a complete nightmare
it might be worth writing a perl script to clean it up before reading it
with IDL. Perl is much better at fiddling with text to get into an
understandable format than IDL.
Pete.
--
Peter Clinch Medical Physics IT Officer
Tel 44 1382 660111 ext. 33637 Univ. of Dundee, Ninewells Hospital
Fax 44 1382 640177 Dundee DD1 9SY Scotland UK
net p.j.clinch@dundee.ac.uk http://www.dundee.ac.uk/~pjclinch/
|
|
|