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 
Return to the default flat view 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
[Message index]
 
Read Message
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: Sat Oct 11 02:51:50 PDT 2025

Total time taken to generate the page: 0.01657 seconds