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 #57753 is a reply to message #57750] Thu, 20 December 2007 13:08 Go to previous messageGo to previous message
Brian Larsen is currently offline  Brian Larsen
Messages: 270
Registered: June 2006
Senior Member
OK, I got it but I'm not sure it makes sense.

for the simple example above the format code:
IDL> readf, lun, dat, format='(2(A,x), 4(I,x))'
% End of input record encountered on file unit: 101.
% Execution halted at: $MAIN$
does not work, while the code:
IDL> readf, lun, dat, format='(2(A2,x), 4(I,x))'
does work
IDL> help, dat, /str
** Structure <1eaa8c4>, 6 tags, length=32, data length=32, refs=1:
A STRING 'a,'
B STRING 'b,'
C INT 0
D INT 1
E INT 2
F INT 3

So if you don't specify the length of the first string it takes
everything?!?!




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: Sun Oct 12 14:45:55 PDT 2025

Total time taken to generate the page: 1.92276 seconds