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

Home » Public Forums » archive » Reading in a string 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
Reading in a string file [message #39186] Tue, 27 April 2004 15:05
Jonathan Greenberg is currently offline  Jonathan Greenberg
Messages: 91
Registered: November 2002
Member
Any hints on how to read a file which is in CSV form where each entry is a
text string:

Quaking Aspen
Low Sagebrush
Jeffrey Pine

Into an array for use in a query, e.g.

print,stringarray[0]
-> Quaking Aspen

For numerical data I usually do a array = READ_ASCII(filename,delimiter=",")
And then array=array.(0) so I can have it in a normal array format. For
this data, however, I get an array of NaN

--j
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Plane fit
Next Topic: Re: status of HDF5 *writing* support in IDL

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

Current Time: Fri Oct 10 06:55:14 PDT 2025

Total time taken to generate the page: 0.47793 seconds