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

Home » Public Forums » archive » Re: String formatting nightmare
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: String formatting nightmare [message #77127] Fri, 05 August 2011 01:54
Wout De Nolf is currently offline  Wout De Nolf
Messages: 194
Registered: October 2008
Senior Member
On Thu, 4 Aug 2011 18:57:37 -0700 (PDT), Balt <bindermuehle@gmail.com>
wrote:

> Hi all,
>
> I have this title text for a graph:
>
> STRING(FORMAT='("t!Dcorner!N: ",I0, "s !4U!X!Dsat!N: ", I0, "deg Phase
> screen vel: ", F3.1, "m/s")', tcorner, phisat, vps)
>
> and I need to replace the "deg" characters with the degree symbol:
> STRING("232B)
>
> Is there any way to include that inside the STRING FORMAT argument or
> is the only way really to build the string in stages?
>
> Thanks!
>
> - Balt


title=STRING(FORMAT='("t!Dcorner!N: ",I0, "s !4U!X!Dsat!N: ", I0,
"'+STRING(176b)+' Phase screen vel: ", F3.1, "m/s")', tcorner, phisat,
vps)
Re: String formatting nightmare [message #77128 is a reply to message #77127] Thu, 04 August 2011 19:42 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
Balt writes:

> I have this title text for a graph:
>
> STRING(FORMAT='("t!Dcorner!N: ",I0, "s !4U!X!Dsat!N: ", I0, "deg Phase
> screen vel: ", F3.1, "m/s")', tcorner, phisat, vps)
>
> and I need to replace the "deg" characters with the degree symbol:
> STRING("232B)
>
> Is there any way to include that inside the STRING FORMAT argument or
> is the only way really to build the string in stages?

I don't understand your question, but this seems to work:

ss = STRING(FORMAT='("t!Dcorner!N: ",I0, "s !4U!X!Dsat!N: ", I0, A0, "
Phase screen vel: ", F3.1, "m/s")', tcorner, phisat, String("232B), vps)

Cheers,

David
--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.idlcoyote.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: String formatting nightmare
Next Topic: Re: How do I change time on a dataset

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

Current Time: Wed Oct 08 13:36:29 PDT 2025

Total time taken to generate the page: 0.00557 seconds