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

Home » Public Forums » archive » Re: Ascii-import
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: Ascii-import [message #32027 is a reply to message #32025] Tue, 10 September 2002 06:40 Go to previous messageGo to previous message
Thomas Jordi is currently offline  Thomas Jordi
Messages: 5
Registered: August 2002
Junior Member
> There are much easier ways to read this kind of data
> than READ_ASCII. Here is an example using the COUNT_ROWS
> program you can find on my web page:
>
> num_rows = Count_Rows(filename)
> data = StrArr(num_rows)
> OpenR, lun, filename, /Get_Lun
> ReadF, lun, data
> Free_Lun, lun
>

Thanks to both of you. As the ascii_read didn't work I first posted,
then thought.
This is how i finally resolved it (with w eq filename):

OPENR, unit10, w, /GET_LUN
buf=''
count=0
WHILE (NOT EOF(unit10)) DO BEGIN
READF, unit10, buf
count=count+1
ENDWHILE
CLOSE, unit10 & FREE_LUN, unit10
img=STRARR(count)
OPENR, unit9, w, /GET_LUN
READF, unit9, img
CLOSE, unit9 & FREE_LUN, unit9

some sort of countrows...

tnx again

Thomas

> Cheers,
>
> David
> --
> David W. Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Phone: 970-221-0438, E-mail: david@dfanning.com
> Coyote's Guide to IDL Programming: http://www.dfanning.com/
> Toll-Free IDL Book Orders: 1-888-461-0155

--
�`����,��,�`ï¿½ï ¿½ï¿½ï¿½,�
Thomas Jordi
Geographisches Institut
Universitaet Bern
Hallerstrasse 12
3012 Bern

tschordi@giub.unibe.ch
�`����,��,�`ï¿½ï ¿½ï¿½ï¿½
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Simple animation?
Next Topic: CW_Animate procedure...

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

Current Time: Sun Nov 30 13:17:19 PST 2025

Total time taken to generate the page: 0.47866 seconds