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

Home » Public Forums » archive » Re: Reading a table of data quickly
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 a table of data quickly [message #34146 is a reply to message #34139] Tue, 25 February 2003 09:01 Go to previous messageGo to previous message
Paul Van Delst[1] is currently offline  Paul Van Delst[1]
Messages: 1157
Registered: April 2002
Senior Member
"R.G. Stockwell" wrote:
>
> CelticBlues wrote:
>> I have a table of floating points I need to read from a file. I will know
>> at run time, from other information in the file, the number of rows and
>> cols.
>>
>> Assume I have read the rows into the var numberOfRows and likewise for
>> numberOfColumns.
>>
>> How can I quickly, preferrably all at once, read in the table?
>>
>> I assume I first need to create an array into which to put the data...
>>
>> ; create array for data
>> data = dblarr(numberOfRows, numberOfColumns)
>>
>> ; read it
>> ; ?
>>
>> Thanks,
>> Ed
>>
>>
>
> openr,1,filename
> readf,1,data
> close,1

doesn't it require

data = dblarr(numberOfColumns, numberOfRows)?

i.e. isn't the "column" the index that would vary the fastest (just like in ASCII files)?

paulv

--
Paul van Delst
CIMSS @ NOAA/NCEP/EMC
Ph: (301)763-8000 x7274
Fax:(301)763-8545
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: WTB: Used documentation for IDL, PV-WAVE.
Next Topic: Re: Random spherical distributions

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

Current Time: Sat Oct 11 08:19:36 PDT 2025

Total time taken to generate the page: 2.79879 seconds