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

Home » Public Forums » archive » Re: Large ascii file
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
Re: Large ascii file [message #42458] Wed, 09 February 2005 23:51
R.Bauer is currently offline  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 Go to previous message
Ben Panter is currently offline  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
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: XML-RPC
Next Topic: Hdf5 convert

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

Current Time: Wed Oct 08 20:01:43 PDT 2025

Total time taken to generate the page: 0.07703 seconds