<div dir="ltr"><div>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.</div><div><br></div>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):<div><br></div><div>--------------------------</div><div>Opened ../stevem/data/cdf/monthlyanoms/<a href="http://air.sig995.mon.anom.nc">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)<br></div><div><div>--------------------------</div><div><br></div><div>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.</div><div><br></div><div>Here's the applicable command in my script:</div><div><br></div><div>'d tcorr2(ndexnew(t-'lt'),'dvar',time='date1',time='date2',12mo)'<br></div><div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>Stephen McMillan</div><div>Research Meteorologist</div><div><br></div><div><br></div><div></div></div></div>

<br>
<pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">******************************<wbr>*********************</pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">The information contained in this e-mail message </pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">is intended only for the use of the recipient(s) </pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">named above and may contain information that is </pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">privileged, confidential, and/or proprietary. </pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">If you are not the intended recipient, you may not</pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">review, copy or distribute this message. If you have</pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">received this communication in error, please notify </pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">the sender immediately by e-mail, and delete the original message.</pre><pre style="white-space:pre-wrap;color:rgb(34,34,34);margin:0in 0in 0.0001pt;font-size:10pt;font-family:"Courier New";background-color:rgb(255,255,255)">******************************<wbr>*********************</pre>