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

Home » Public Forums » archive » printing structure values on one line
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: printing structure values on one line [message #496 is a reply to message #303] Wed, 01 July 1992 20:24 Go to previous messageGo to previous message
jdlb is currently offline  jdlb
Messages: 11
Registered: July 1992
Junior Member
knight@ll.mit.edu (Fred Knight) writes:
|>
|> For an application that wants card images (Lowtran), I want to print
|> the values of a structure
|> without the {}'s
|> and
|> on one line.


You can
IDL> print, t, format='(3f10.2,$)' & print ;$ means no carriage return.
Or simply
IDL> print, t.a, t.b, t.c

If you don't know the number of tags, use N_TAGS(t) to find it and use the
STRING procedure in an iterative loop:
IDL> text = ''
IDL> for i=0,n_tags(t)-1 do text = text+string(t.(i))
IDL> print,text
0.00000 0.00000 0.00000


--Jeff
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CALL_EXTERNAL: accessing global variables from IDL
Next Topic: char orientation

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

Current Time: Wed Oct 08 19:25:12 PDT 2025

Total time taken to generate the page: 0.00469 seconds