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

Home » Public Forums » archive » Re: read_ascii for many rows / possible to create automatic names for variables
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: read_ascii for many rows / possible to create automatic names for variables [message #57330 is a reply to message #57138] Wed, 05 December 2007 08:25 Go to previous message
britta.mey is currently offline  britta.mey
Messages: 14
Registered: August 2007
Junior Member
On Dec 5, 5:06 pm, David Fanning <n...@dfanning.com> wrote:
> Britta writes:
>> this really confuses me. Sometimes i think i have a bad aura
>> concerning computers :-). If you agree I would send you the original
>> file for a short test, because at the moment i have no idea what my
>> mistake is.
>
>> The syntax I use is the copy of your suggestion (see below):
>
>> ------------------------------------------------------------ ---
>> rows = File_Lines('PATH\FILENAME.dat')
>> Openr, lun, 'PATH\FILENAME.dat', /Get_Lun
>> line = ""
>> ReadF, lun, line
>> cols = N_Elements(STRSPlit(line, ' ', /Extract))
>> Point_lun, lun, 0
>> data = FltArr(cols, rows)
>> ReadF, lun, data
>> Free_Lun, lun
>
>> colMeans = Total(data, 2)/rows
>
>> print, colMeans(6)
>
>> end
>> ------------------------------------------------------------ --------
>
> Is 'PATH\FILENAME.dat' really the name of your file!?
> I can see you have a literal programming mind. :-)
>
> OK, look. You can't tell my wife about this, because
> she thinks IDL consulting is what I get paid for. I can't
> put my e-mail here because I already have about 15 years
> supply of viagra. If you can figure out from my web page
> how to e-mail me, send me the file, and I'll have a look
> at it. But please name it something sensible before you
> send it to me. :-)
>
> Cheers,
>
> David
> --
> David Fanning, Ph.D.
> Fanning Software Consulting, Inc.
> Coyote's Guide to IDL Programming:http://www.dfanning.com/
> Sepore ma de ni thui. ("Perhaps thou speakest truth.")


Thank you, the file is on its way.

Concerning my brilliant names for paths and files... I think it
wouldn't be possible to use my path, so I didn't want to bore everyone
with really loooooooooong paths. :-D

Cheers,

Britta
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: array operations and memory consumption
Next Topic: pson + !p.multi + xyouts

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

Current Time: Thu Oct 16 08:53:47 PDT 2025

Total time taken to generate the page: 1.19947 seconds