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 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
Re: Reading in a string file [message #39176] Wed, 28 April 2004 07:24 Go to previous message
Ken Knapp is currently offline  Ken Knapp
Messages: 14
Registered: April 2003
Junior Member
Jonathan Greenberg wrote:
> Any hints on how to read a file which is in CSV form where each entry is a
> text string:
>
SNIP
> 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

How about:
s=' '
readf,unit,s
array = strsplit(s,',',/extr)

maybe?
-Ken

--
***** to reply remove the _REMOVE_ *****

Ken Knapp Ken.Knapp@_REMOVE_noaa.gov
Remote Sensing and Applications Division
National Climatic Data Center
151 Patton Ave
Asheville, NC 28806
828-271-4339 (voice) 828-271-4328 (fax)
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Keyboard Events on Windows
Next Topic: Read 3D array into IDL

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

Current Time: Sun Oct 12 01:17:26 PDT 2025

Total time taken to generate the page: 1.92137 seconds