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

Home » Public Forums » archive » Re: reading in a csv 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: reading in a csv file [message #43010] Sat, 12 March 2005 10:03
mperrin+news is currently offline  mperrin+news
Messages: 81
Registered: May 2001
Member
FSD <frank@digennaro-dot-com> wrote:
> Hello All;
> I am trying to read in a .csv file with IDL and I am finding that it
> is not a trivial thing to do. In Perl, it would take 3 seconds to read in.
> Has anyone written a generic procedure to do this? Any help would be
> appreciated.

Check out readcol.pro from the Goddard idl astronomy library.
http://idlastro.gsfc.nasa.gov

- Marshall
Re: reading in a csv file [message #43011 is a reply to message #43010] Sat, 12 March 2005 09:31 Go to previous message
R.Bauer is currently offline  R.Bauer
Messages: 1424
Registered: November 1998
Senior Member
FSD wrote:

> Hello All;
> I am trying to read in a .csv file with IDL and I am finding that
> it
> is not a trivial thing to do. In Perl, it would take 3 seconds to read in.
> Has anyone written a generic procedure to do this? Any help would be
> appreciated.
> Thanks
> FSD

there are several routines, solutions available. read_data_file is from our
library.

if data is not of type string mixed with numbers
x=read_data_file(file)

if it is mixed or you like type dependent reading
x=read_data_file(file,/vstruct)



http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_source/idl _html/dbase
read_data_file_dbase.pro.html

cheers
Reimar

--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: reading in a csv file
Next Topic: IDL killer

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

Current Time: Wed Oct 08 19:22:41 PDT 2025

Total time taken to generate the page: 0.00627 seconds