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

Home » Public Forums » archive » Re: reading in | delimited files into multiple arrays
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 | delimited files into multiple arrays [message #49020 is a reply to message #49019] Fri, 09 June 2006 09:29 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
johnadams_1980@yahoo.com writes:

> How do you read in a | delimited file in to multiple arrays, one for
> each column of the data?

data = FltArr(numCol, numRow)
OpenR, lun, theFile, /Get_Lun
ReadF, lun, data
Free_Lun, data

col_1 = Reform(data[0,*])
col_2 = Reform(data[1,*])

etc.

Cheers,

David

--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Re: Roses Blooming
Next Topic: replace elements in array

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

Current Time: Sun Oct 12 07:20:14 PDT 2025

Total time taken to generate the page: 0.95960 seconds