Writing Numerical Value on Screen
Matt Georgescu
matt1 at CEP.RUTGERS.EDU
Fri Jul 13 09:29:48 EDT 2007
Thanks Charles - you caught my mistake instantly (when i was capturing
'subwrd', I was not looking at the result garnered from 'sublin') - I kept
staring at the screen and just couldn't see it.
matt
On Thu, 12 Jul 2007, Charles Seman wrote:
> Matt,
>
> Are you displaying any variable after 'set gxout stat'? doing this will
> give you a "result" for "sublin"...
>
> Then if you use
> rec11 = sublin(result,11) --> extracts record 11 from "result"... does
> this contain the information you want?
>
> and if you change
> word = subwrd(result,2)
> to
> word = subwrd(rec11,2) --> extracts word 2 from record 11 from
> "result"... note, we use the "rec11" from the "sublin" extraction...
> does this contain the information you want?
>
> I hope this helps,
> Chuck
>
> Matt Georgescu wrote:
>> Fellow GrADS users, i have what i presume to be a simple question, yet i
>> can't figure it out.
>>
>> i perform a graphical calculation. i then set gxout stat to pull some
>> statistics out - what i want to do, is simply pull a number from the 'set
>> gxout' output, and write it as text to the same graphical page where i
>> drew my map.
>>
>> after i draw my map, i invoke this:
>> 'set gxout stat'
>> val = sublin(result,11)
>> word = subwrd(result,2)
>> 'draw string 7.75 0.4 Domain Avg = 'word
>>
>> the last line doesn't actually print my numerical result 'word'. I
>> imagine
>> that this is because GrADS reads 'word' as a character ... how can i get
>> around this?
>>
>> thanks,
>> matt
>
> --
>
> Please note that Charles.Seman at noaa.gov should be considered my NOAA
> email address, not cjs at gfdl.noaa.gov.
>
> ********************************************************************
> Charles Seman Charles.Seman at noaa.gov
> U.S. Department of Commerce / NOAA / OAR
> Geophysical Fluid Dynamics Laboratory voice: (609) 452-6547
> 201 Forrestal Road fax: (609) 987-5063
> Princeton, NJ 08540-6649 http://www.gfdl.noaa.gov/~cjs/
> ********************************************************************
>
> "The contents of this message are mine personally and do not reflect
> any position of the Government or NOAA."
>
More information about the gradsusr
mailing list