<div dir="ltr">Dear Andrew<div>Thank you very much for your previous suggestion. Now, I can prepare El Nino series as well as temporal correlation. However, I am not confident enough whether I am right or wrong. I use the following script for correlating El Nino 4 index with sea level pressure (Jan 1979 to Dec2014). Please confirm me the following command.<br><div><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;">&quot;reinit&quot;</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;">&quot;sdfopen \Temp\<a href="http://sst7914.mnmean.v4.nc/" target="_blank">sst7914.mnmean.v4.nc</a>&quot;</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;">&quot;set t 1 12&quot;</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;;background:yellow">&quot;define avesst=ave(sst1,t+0,t=432,12)&quot;</span><span style="font-family:&#39;Courier New&#39;"></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;">&quot;modify avesst seasonal&quot;</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;;background:yellow">&quot;set t 1 432&quot;</span><span style="font-family:&#39;Courier New&#39;"></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;">&quot;define sstanom=sst1-avesst&quot;</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;;font-size:12.8px">&quot;define nino4=aave(sstanom,lon=-150,</span><span style="font-family:&#39;Courier New&#39;;font-size:12.8px">lon=160,lat=-5,lat=5)&quot;</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;"> </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;">&quot;sdfopen \Users\mq43879691\documents\test2\<a href="http://mslp.mon.mean.nc/" target="_blank">mslp.mon.mean.nc</a>&quot;</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;">&quot;set lon 0 360&quot;</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;">&quot;set lat -90 90&quot;</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;;background:yellow">&quot;set t 1&quot;</span><span style="font-family:&#39;Courier New&#39;"></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;">&quot;d tcorr(nino4,mslp.2,t=1,t=432)&quot;</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;"><br></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;">Output:</span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;"><img src="cid:ii_14ff3a0770fa737f" alt="Inline image 1" width="562" height="263"><br></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><span style="font-family:&#39;Courier New&#39;"><br></span></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><font face="Courier New">How can perform lead or lag correlation?</font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><font face="Courier New"><br></font></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><font face="Courier New" style="font-size:12.8px">Best </font><font face="Courier New"><span style="font-size:12.8px">regards</span></font></p><p class="MsoNormal" style="margin-bottom:0.0001pt;font-size:12.8px"><font face="Courier New">Abdus</font></p></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Sep 15, 2015 at 6:48 AM, Andrew Friedman <span dir="ltr">&lt;<a href="mailto:andfried@gmail.com" target="_blank">andfried@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi Abdus,<br>
<br>
Your timeseries is static because your boundaries for ssta do not have a time-varying dimension.<br>
<br>
There are different commands, depending on what you’re trying to do.<br>
<br>
Are you trying to create a monthly ssta climatology? If so, check out the instructions for the command ‘modify’: <a href="http://www.iges.org/grads/gadoc/gradcomdmodify.html" rel="noreferrer" target="_blank">http://www.iges.org/grads/gadoc/gradcomdmodify.html</a><br>
<br>
Or are you trying to create a running mean timeseries of ssta? In that case, try something like ssta=ave(sst,t-11,t+0).<br>
<br>
Best,<br>
Andrew<br>
<span class=""><br>
<br>
On Sep 13, 2015, at 8:01 AM, MD ABDUS SATTAR &lt;<a href="mailto:md-abdus.sattar@students.mq.edu.au">md-abdus.sattar@students.mq.edu.au</a>&gt; wrote:<br>
<br>
&gt; Hi Andrew<br>
&gt; I was trying to set tloop, but still facing difficulties. I prepared the script as:<br>
&gt; &quot;reinit&quot;<br>
&gt; &quot;sdfopen \Users\mq43879691\documents\test2\<a href="http://sst.mnmean.v4.nc" rel="noreferrer" target="_blank">sst.mnmean.v4.nc</a>&quot;<br>
&gt; &quot;set t 1 1937&quot;<br>
&gt; &quot;define ssta=ave(sst,t=1501,t=1933,12)&quot;<br>
&gt;<br>
&gt; &quot;set lat 25&quot;<br>
&gt; &quot;set lon 50&quot;<br>
&gt; &quot;set lev 0&quot;<br>
&gt; &quot;set t 1501 1933&quot;<br>
&gt;<br>
&gt;<br>
&gt; &quot;d tloop(aave(ssta,lon=100,lon=170,lat=-5,lat=5))&quot;<br>
&gt;<br>
&gt; &quot;d tloop(aave(sst,lon=100,lon=170,lat=-5,lat=5))&quot;<br>
&gt;<br>
&gt; I can display time series of El Nino by using sst value (&quot;d tloop(aave(sst,lon=100,lon=170,lat=-5,lat=5))&quot;). However, I would like use to ssta (&quot;d tloop(aave(ssta,lon=100,lon=170,lat=-5,lat=5))&quot;) and when I use this the following map is found. Could you please suggest me in this regards?<br>
&gt;<br>
&gt;<br>
&gt;<br>
</span>&gt; &lt;image.png&gt;<br>
<div class=""><div class="h5">&gt;<br>
&gt;<br>
&gt; Thanking you<br>
&gt;<br>
&gt; Abdus<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; On Fri, Sep 11, 2015 at 4:18 PM, Andrew Friedman &lt;<a href="mailto:andfried@gmail.com">andfried@gmail.com</a>&gt; wrote:<br>
&gt; Hi Abdus,<br>
&gt; You may need to use ‘tloop’ with aave: <a href="http://www.iges.org/grads/gadoc/gradfunctloop.html" rel="noreferrer" target="_blank">http://www.iges.org/grads/gadoc/gradfunctloop.html</a><br>
&gt; Andrew<br>
&gt;<br>
&gt; On Sep 11, 2015, at 7:05 AM, MD ABDUS SATTAR &lt;<a href="mailto:md-abdus.sattar@students.mq.edu.au">md-abdus.sattar@students.mq.edu.au</a>&gt; wrote:<br>
&gt;<br>
&gt; &gt; Dear GrADS Team<br>
&gt; &gt; I am trying to calculate time series of El Nino SST anomaly in January for a specific time period.<br>
&gt; &gt;<br>
&gt; &gt; I wrote my script as:<br>
&gt; &gt;<br>
&gt; &gt; &quot;reinit&quot;<br>
&gt; &gt; &quot;sdfopen \Users\mq43879691\documents\test2\<a href="http://sst.mnmean.v4.nc" rel="noreferrer" target="_blank">sst.mnmean.v4.nc</a>&quot;<br>
&gt; &gt; &quot;set lon 100&quot;<br>
&gt; &gt; &quot;set lat 25&quot;<br>
&gt; &gt; &quot;set z 1&quot;<br>
&gt; &gt; &quot;set t 1 600&quot;<br>
&gt; &gt;<br>
&gt; &gt; &quot;define ssta=ave(sst,t=1,t=600,12)&quot;<br>
&gt; &gt;<br>
&gt; &gt; &quot;define elnino = aave(ssta,lon=100,lon=170,lat=-5,lat=5)&quot;<br>
&gt; &gt;<br>
&gt; &gt; &quot;d elnino&quot;<br>
&gt; &gt;<br>
&gt; &gt; The GrADS did not know show anything by this script. On the other hand, when I display only ssta setting lon 50 100 and lat 0 25; then it shows the ssta. Can anybody help me in this regards?<br>
&gt; &gt;<br>
&gt; &gt; I look forward to your suggestion.<br>
&gt; &gt;<br>
&gt; &gt; Regards<br>
&gt; &gt; Abdus<br>
&gt; &gt; --<br>
&gt; &gt; Md. Abdus Sattar<br>
&gt; &gt; PhD Student<br>
&gt; &gt; Department of Environmental Sciences<br>
&gt; &gt; Level 2, Australian Hearing Hub Building<br>
&gt; &gt;<br>
&gt; &gt; Faculty of Science and Engineering<br>
&gt; &gt; Macquarie University<br>
&gt; &gt; NSW 2109 Australia<br>
&gt; &gt;<br>
&gt; &gt;<br>
&gt; &gt; Cell: +61404400401<br>
&gt; &gt; Email: <a href="mailto:md-abdus.sattar@students.mq.edu.au">md-abdus.sattar@students.mq.edu.au</a><br>
&gt; &gt;<br>
&gt; &gt; AND<br>
&gt; &gt;<br>
&gt; &gt; Assistant Professor<br>
&gt; &gt; Department of Disaster Risk Management (DRM)<br>
&gt; &gt; Faculty of Disaster Management<br>
&gt; &gt; Patuakhali Science and Technology University, Dumki, Patuakhali, Bangladesh<br>
&gt; &gt;<br>
&gt; &gt; Cell: <a href="tel:%2B8801716851612" value="+8801716851612">+8801716851612</a><br>
&gt; &gt; Email: <a href="mailto:abdus.sattar@pstu.ac.bd">abdus.sattar@pstu.ac.bd</a><br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; gradsusr mailing list<br>
&gt; &gt; <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
&gt; &gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
&gt;<br>
&gt;<br>
&gt; _______________________________________________<br>
&gt; gradsusr mailing list<br>
&gt; <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; Md. Abdus Sattar<br>
&gt; PhD Student<br>
&gt; Department of Environmental Sciences<br>
&gt; Level 2, Australian Hearing Hub Building<br>
&gt;<br>
&gt; Faculty of Science and Engineering<br>
&gt; Macquarie University<br>
&gt; NSW 2109 Australia<br>
&gt;<br>
&gt;<br>
&gt; Cell: <a href="tel:%2B61404400401" value="+61404400401">+61404400401</a><br>
&gt; Email: <a href="mailto:md-abdus.sattar@students.mq.edu.au">md-abdus.sattar@students.mq.edu.au</a><br>
&gt;<br>
&gt; AND<br>
&gt;<br>
&gt; Assistant Professor<br>
&gt; Department of Disaster Risk Management (DRM)<br>
&gt; Faculty of Disaster Management<br>
&gt; Patuakhali Science and Technology University, Dumki, Patuakhali, Bangladesh<br>
&gt;<br>
&gt; Cell: <a href="tel:%2B8801716851612" value="+8801716851612">+8801716851612</a><br>
&gt; Email: <a href="mailto:abdus.sattar@pstu.ac.bd">abdus.sattar@pstu.ac.bd</a><br>
&gt; _______________________________________________<br>
&gt; gradsusr mailing list<br>
&gt; <a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
&gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br>
<br>
_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Md. Abdus Sattar<div>PhD Student</div><div>Department of Environmental Sciences</div><div><span style="font-family:arial,helvetica,sans-serif;font-size:12px;line-height:15px">Level 2, Australian Hearing Hub Building</span><br style="font-size:12.8px"><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Faculty of Science and Engineering<br>Macquarie University<br></span><span style="font-size:12.8px">NSW 2109 Australia</span><br></div><div><br></div><div><br></div><div>Cell: +61404400401</div><div>Email: <a href="mailto:md-abdus.sattar@students.mq.edu.au" target="_blank">md-abdus.sattar@students.mq.edu.au</a></div><div><br></div><div><b>AND</b></div><div><br></div><div><div style="font-size:12.8px">Assistant Professor</div><div style="font-size:12.8px">Department of Disaster Risk Management (DRM)</div></div><div><span style="background-color:rgb(243,243,243)">Faculty of Disaster Management</span></div><div>Patuakhali Science and Technology University, Dumki, Patuakhali, Bangladesh</div><div><br></div><div>Cell: +8801716851612</div><div>Email: <a href="mailto:abdus.sattar@pstu.ac.bd" target="_blank">abdus.sattar@pstu.ac.bd</a></div></div></div></div></div></div></div></div></div></div>
</div></div></div>