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

Home » Public Forums » archive » Re: Format codes for comma separated data
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: Format codes for comma separated data [message #57761 is a reply to message #57759] Thu, 20 December 2007 12:17 Go to previous messageGo to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
On Dec 20, 3:13 pm, David Fanning <n...@dfanning.com> wrote:
> Brian Larsen writes:
>> What I normally do is create a struct array and read a file into that
>> with each column having a structure tag so I can stay organized. But
>> I can't figure out the format codes to do that this time...
>
> Why not? Because they vary from line to line?
>

No the fields are the same line to line, readf is not breaking up the
line.

When you do
IDL> dat = strarr(134,3)
IDL> readf, lun, in, dat
you dont get one number per array element, you get one line per
element.





Brian

------------------------------------------------------------ --------------
Brian Larsen
Boston University
Center for Space Physics
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Format codes for comma separated data
Next Topic: IDL 7 on Ubuntu

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

Current Time: Fri Jul 17 22:45:02 PDT 2026

Total time taken to generate the page: 1.04347 seconds