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

Home » Public Forums » archive » Re: Unsolved indexing problem 2 weeks ago.
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: Unsolved indexing problem 2 weeks ago. [message #55832 is a reply to message #55737] Mon, 10 September 2007 22:32 Go to previous message
jkj is currently offline  jkj
Messages: 48
Registered: April 2007
Member
I guess that this:
>> albedo_arr = fltarr(2, num_data)

followed by this:
>> openr, 2, data1
>> readf, 2, albedo_arr

fills up the array "albedo_arr" with the first two floats from each of
the first "num_data" lines?

I tend to be more explicit and read/parse each line separately - it's
nice to know when a line does not 'look' like what it should. I've
never noticed a performance hit, but I've never tried it the above
way, either. Some array operations are good and some blind you from
irregularities that should be caught!

while(not eof(2))do begin
line = ''
readf, 2, line
....check/process the line... do a write, whatever
endwhile

-Kevin
[Message index]
 
Read Message
Read Message
Previous Topic: If you really want lauf, cklick down on the link:
Next Topic: Call IDL (Virtual Machine) Save file from Java

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

Current Time: Fri Oct 10 10:15:12 PDT 2025

Total time taken to generate the page: 1.03893 seconds