<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;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Preformatted Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";}
span.HTMLPreformattedChar
        {mso-style-name:"HTML Preformatted Char";
        mso-style-priority:99;
        mso-style-link:"HTML Preformatted";
        font-family:"Consolas",serif;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@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">
<div class="WordSection1">
<p class="MsoNormal">Check the output from ‘q udpt’ which shows which user-defined functions are loaded and the full path to the .dll/.so/.dylib files.<o:p></o:p></p>
<p class="MsoNormal"><a href="http://cola.gmu.edu/grads/gadoc/udpt.html">http://cola.gmu.edu/grads/gadoc/udpt.html</a><o:p></o:p></p>
<p class="MsoNormal">--Jennifer<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt">-- <span style="color:black"><br>
Jennifer Miletta Adams<br>
ADNET Systems, Inc.<br>
NASA/GSFC, Code 610.2</span><o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;color:black">Building 32, Room S159<br>
(301) 614-6070<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><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 Stephen McMillan <smcmillan@planalytics.com><br>
<b>Reply-To: </b>GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Date: </b>Friday, September 11, 2020 at 10:53 AM<br>
<b>To: </b>GrADS Users Forum <gradsusr@gradsusr.org><br>
<b>Subject: </b>[EXTERNAL] [gradsusr] Problem Using Functions tcorr2 and tregr2 in Linux<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">This question is for the developers of or a user familiar with both the Windows and Linux versions of opengrads.  This question is specifically about version 2.2.1.oga.1.  Another user could not use it on the ubuntu version as well.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">I have a script that does temporal regressions of the variable "air" on various climate indices, using opengrads functions (B Tsuang extensions) tcorr2 and tregr2.  I have no problems using the Windows version on my laptop, but when I use
 it on my Cloud linux version, I get the following error when using tcorr2 (the tregr2 error is similar):<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">--------------------------<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Opened ../stevem/data/cdf/monthlyanoms/<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__air.sig995.mon.anom.nc&d=DwMFaQ&c=ApwzowJNAKKw3xye91w7BE1XMRKi2LN9kiMk5Csz9Zk&r=M2mFZsxo0ZoztoK2Lyoypu1kKkBVKyEoM9CXGWO42zk&m=9UhlMLP_CcqwKLV83skENCq04zKo8msPg6c3cWk_fxM&s=Eq-4R3cDkHagKxCLjM2g6GprcZ8LGw2P-rzQGv-QSPU&e=">air.sig995.mon.anom.nc</a><br>
Opened data/index/pna.mon.1948-2020.ctl<br>
i=1  j=1<br>
Error from TCORR:  Too many or too few args<br>
                   4 arguments expected<br>
Operation Error:  Error from tcorr2 function<br>
  Error ocurred at column 1<br>
DISPLAY error:  Invalid expression<br>
  Expression = tcorr2(ndexnew(t-2),air,time=oct1950,time=oct2019,12mo)<br>
Cannot plot color bar: No shading information<br>
Error from TCORR:  Too many or too few args<br>
                   4 arguments expected<br>
Operation Error:  Error from tcorr2 function<br>
  Error ocurred at column 1<br>
DISPLAY error:  Invalid expression<br>
  Expression = tcorr2(ndexnew(t-2),air,time=oct1950,time=oct2019,12mo)<o:p></o:p></p>
</div>
<div>
<div>
<p class="MsoNormal">--------------------------<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">All of the variables are valid and available to the function, so the issue appears to be related to the fifth argument provided, which tcorr does not accept.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Here's the applicable command in my script:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">'d tcorr2(ndexnew(t-'lt'),'dvar',time='date1',time='date2',12mo)'<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">where ndexnew is the independent variable timeseries, dvar = air, date1 and date2 represent the range of dates in "air" and 12mo is the time interval within both ndexnew and dvar.  Lt = the index leadtime in months, so a regression of Oct
 "air" is being done on the Aug index.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">How do I get my script to override/ignore the official GrADS functions tcorr and tregr with the opengrads functions tcorr2 and tregr2?  I prefer to use the latter because they include the fifth argument "dt".  Note, other B Tsuang extension
 functions, such as "if_" work on my linux and the required B Tsuang extension files
<u>appear</u> to be present.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Stephen McMillan<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Research Meteorologist<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</div>
<p class="MsoNormal"><br>
<br>
<o:p></o:p></p>
<pre style="background:white"><span style="color:#222222">***************************************************<o:p></o:p></span></pre>
<pre style="background:white;white-space:pre-wrap"><span style="color:#222222">The information contained in this e-mail message <o:p></o:p></span></pre>
<pre style="background:white;white-space:pre-wrap"><span style="color:#222222">is intended only for the use of the recipient(s) <o:p></o:p></span></pre>
<pre style="background:white;white-space:pre-wrap"><span style="color:#222222">named above and may contain information that is <o:p></o:p></span></pre>
<pre style="background:white;white-space:pre-wrap"><span style="color:#222222">privileged, confidential, and/or proprietary. <o:p></o:p></span></pre>
<pre style="background:white;white-space:pre-wrap"><span style="color:#222222">If you are not the intended recipient, you may not<o:p></o:p></span></pre>
<pre style="background:white;white-space:pre-wrap"><span style="color:#222222">review, copy or distribute this message. If you have<o:p></o:p></span></pre>
<pre style="background:white;white-space:pre-wrap"><span style="color:#222222">received this communication in error, please notify <o:p></o:p></span></pre>
<pre style="background:white;white-space:pre-wrap"><span style="color:#222222">the sender immediately by e-mail, and delete the original message.<o:p></o:p></span></pre>
<pre style="background:white;white-space:pre-wrap"><span style="color:#222222">***************************************************<o:p></o:p></span></pre>
</div>
</body>
</html>