Re: Large ascii file [message #42458] |
Wed, 09 February 2005 23:51 |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Clive Cook wrote:
> I have a large ascii file with effectively 8000 columns seperated by comma's
> and 198 rows. I thought that this would work,
>
> data =fltarr(8000,198)
>
> openr,lun,test_data,/get_lun
>
> readf,lun,data
>
> free_lun,lun
>
>
> but it returns the wrong values. Any ideas?
>
> many thanks
>
> Clive
>
>
This should work
so I think you have not in each cell a value. Do you have cells
like ,,,10,4 ?
cheers
Reimar
--
Reimar Bauer
Institut fuer Stratosphaerische Chemie (ICG-I)
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
------------------------------------------------------------ -------
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
============================================================ =======
|
|
|
Re: Large ascii file [message #42469 is a reply to message #42458] |
Wed, 09 February 2005 14:26  |
Ben Panter
Messages: 102 Registered: July 2003
|
Senior Member |
|
|
Clive Cook wrote:
> I have a large ascii file with effectively 8000 columns seperated by comma's
> and 198 rows. I thought that this would work,
> openr,lun,test_data,/get_lun
I think you need to use the "width=" option when you call openr. From
the help system, the default width is 80 characters, I think you want it
to be more like 8000 * width -- although this may run into problems
(I've never made anything that big!)
Ben
|
|
|