[gradsusr] [EXTERNAL] [BULK] How to display the output number value of a variable on the Graph

Mikovitz, Colleen (LARC-E302)[Science Systems & Applications, Inc.] j.c.mikovitz at nasa.gov
Fri May 12 08:21:57 EDT 2023


Dear Muhammad,

You can use the draw string command in your script file, something like:

'draw string 9 8 Temporal Corr = 'tcorr

http://cola.gmu.edu/grads/gadoc/gradcomddrawstring.html

Colleen

From: gradsusr <gradsusr-bounces at gradsusr.org> on behalf of Muhammad Dogar <mubashardogar at gmail.com>
Reply-To: GrADS Users Forum <gradsusr at gradsusr.org>
Date: Thursday, May 11, 2023 at 11:30 PM
To: gradsusr <gradsusr at gradsusr.org>
Subject: [EXTERNAL] [BULK] [gradsusr] How to display the output number value of a variable on the Graph


Dear Gradsusr,
I have calculated NINO3.4 and NAO indices over a time period (1940-2010) and have plotted them as a linear plot over the desired time period. After plotting these NINO3.4 and NOA variables, I have computed their correlation which will be a number like "0.8" etc which I would like to display/write on the above GrADS shown plot. I used the GrADS function "tcorr" as follows
'open file.ctl'  **file that contains 1-d NINO34 and NAO variables for the period 1940-2010
'set t 1 last'  ****time from jan1940 till jan2010
'd nino34'
'd nao'
'set t 1'
'define tcorr=tcorr(NINO34,NAO,time=jan1941,time=jan2010)'
*As NINO34 and NAO are one dimensional and the correlation between them is a numerical number. I want to display this numerical value "tcorr" on the above-displayed plot (somewhere on the top right side, etc). How can I do that? Please advise.
--
Muhammad Mubashar Dogar
Scientific Officer (Climatology Section),
Global Change Impact Studies Centre (GCISC)
Ministry of Climate Change (MoCC)
6th Floor, Emigration Tower, G 8/1, Islamabad, Pakistan
email: mubashardogar at gmail.com<mailto:mubashardogar at gmail.com>
           mubashardogar at yahoo.com<mailto:mubashardogar at yahoo.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gradsusr.org/pipermail/gradsusr/attachments/20230512/7a1d7179/attachment.html>


More information about the gradsusr mailing list