<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
span.gmailsignatureprefix
        {mso-style-name:gmail_signature_prefix;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;
        mso-ligatures:none;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="blue" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Dear Muhammad,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">You can use the draw string command in your script file, something like:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">'draw string 9 8 Temporal Corr = 'tcorr<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><a href="http://cola.gmu.edu/grads/gadoc/gradcomddrawstring.html">http://cola.gmu.edu/grads/gadoc/gradcomddrawstring.html</a><o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Colleen<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">gradsusr <gradsusr-bounces@gradsusr.org> on behalf of Muhammad Dogar <mubashardogar@gmail.com><br>
<b>Reply-To: </b>GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Date: </b>Thursday, May 11, 2023 at 11:30 PM<br>
<b>To: </b>gradsusr <gradsusr@gradsusr.org><br>
<b>Subject: </b>[EXTERNAL] [BULK] [gradsusr] How to display the output number value of a variable on the Graph<o:p></o:p></span></p>
</div>
<div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Dear Gradsusr,<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">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<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">'open file.ctl'  **file that contains 1-d NINO34 and NAO variables for the period 1940-2010<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">'set t 1 last'  ****time from jan1940 till jan2010<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">'d nino34'<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">'d nao'<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">'set t 1'<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">'define tcorr=tcorr(NINO34,NAO,time=jan1941,time=jan2010)'<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">*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.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><span class="gmailsignatureprefix">-- </span><o:p></o:p></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal">Muhammad Mubashar Dogar<br>
Scientific Officer (Climatology Section),<br>
Global Change Impact Studies Centre (GCISC)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Ministry of Climate Change (MoCC)<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">6th Floor, Emigration Tower, G 8/1, Islamabad, Pakistan<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">email: <a href="mailto:mubashardogar@gmail.com" target="_blank">
mubashardogar@gmail.com</a><o:p></o:p></p>
</div>
</div>
<p class="MsoNormal">           <a href="mailto:mubashardogar@yahoo.com" target="_blank">
mubashardogar@yahoo.com</a><o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>