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 #305 is a reply to message #303] Wed, 01 July 1992 11:26 Go to previous messageGo to previous message
dit is currently offline  dit
Messages: 5
Registered: July 1992
Junior Member
In article <1992Jul1.140033.20864@ll.mit.edu>, 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.
>
> Here's an example of the problem.
>
> IDL> t={a:0.,b:0.,c:0.}
> IDL> print,t
> { 0.00000 0.00000 0.00000}
> IDL> print,t,format='(3f10.2)'
> 0.00
> 0.00
> 0.00
>
> I'd like to print the values on one line, not 3 for example.
> Does anybody have any ideas?

Yes, try this:

IDL> print, t, format='($, f10.2)'

The $ will suppress the newline implied by the closing parenthesis.
Hope this helps.

Karl-Heinz
____________________________________________________________ ___
Dipl.-Ing. Karl-Heinz Dittberner | Address: Arnimallee 22
Dept. Scientific Data Processing | D-1000 Berlin 33
c/o Free University of Berlin | Phone: (+4930) 838 2531
E-Mail: dit@vaxser.grumed.fu-berlin.de (Internet)
[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: Fri Oct 10 05:04:15 PDT 2025

Total time taken to generate the page: 0.87744 seconds