<div dir="ltr"><div><div><div>Thank you for these clarifications, Jim.<br><br></div><div>To follow up:<br></div><div>To use your suggested option (2), &quot;define nino4 = aave(sstanom,lon=340,lon=390,lat=-5,lat=5)&quot;<br><br></div><div>Would I first need to redefine the longitude values<br></div></div>&#39;set lon 0 360&#39; ?<br><br></div><div>Best,<br></div>Andrew</div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 24, 2015 at 4:45 AM, James T. Potemra <span dir="ltr">&lt;<a href="mailto:jimp@hawaii.edu" target="_blank">jimp@hawaii.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    Hi Abdus/Andrew,<br>
    <br>
    I&#39;d be cautious of your nino4 as defined.  I presume your data are
    defined -180 to 180, where eastern longitudes are 0 to 180 and
    western longitudes are -180 to 0.  In your line:<br>
    <br>
    &quot;define nino4=aave(sstanom,lon=-150,lon=160,lat=-5,lat=5)”<br>
    <br>
    the longitudes are in fact ascending (-150 is less than 160),
    however I believe this will create a mean from 150W eastward all the
    way around to 160E (again, assuming your longitudes are defined -180
    to 180), a mean over 310 longitudes.  Instead you want 160E to 150E,
    or a mean over 50 longitudes.  I further think Andrew&#39;s suggestion<br>
    <br>
    &quot;define nino4=aave(sstanom,lon=160,lon=-150,lat=-5,lat=5)”<br>
    <br>
    will give an operation error (min lon &gt; max lon).<br>
    <br>
    Instead you could try either:<br>
    <br>
    1.  define two different boxes across the dateline:<br>
    define nino4a = aave(sstanom,lon=160,lon=180,lat=-5,lat=5)<br>
    define nino4b = aave(sstanom,lon=-180,lon=-150,lat=-5,lat=5)<br>
    define nino4 = ( 20 * nino4a + 30 * nino4b ) / 50.0<br>
    <br>
    2.  if the file is global and continuous, you might be able to use<br>
    define nino4 = aave(sstanom,lon=340,lon=390,lat=-5,lat=5)<br>
    <br>
    Jim<div><div class="h5"><br>
    <br>
    <div>On 9/22/15 4:41 PM, MD ABDUS SATTAR
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Hi Andrew
        <div>Thanks!</div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Sep 23, 2015 at 5:58 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Abdus,<br>
            <br>
            I think that you are setting up the anomalies correctly.
            However, you may have a problem with your NINO4 domain:<br>
            &gt; &quot;define
            nino4=aave(sstanom,lon=-150,lon=160,lat=-5,lat=5)”<br>
            <br>
            <a href="https://climatedataguide.ucar.edu/climate-data/nino-sst-indices" rel="noreferrer" target="_blank">https://climatedataguide.ucar.edu/climate-data/nino-sst-indices</a><br>
            <br>
            In GrADS, longitudes need to be ascending.<br>
            <br>
            I think that you want to reverse your longitudes so you have<br>
            <br>
            &quot;define nino4=aave(sstanom,lon=160,lon=-150,lat=-5,lat=5)”
            OR &quot;define nino4=aave(sstanom,lon=160,lon=210,lat=-5,lat=5)”<br>
            <br>
            Best, Andrew<br>
            <span><br>
              &gt; On Sep 22, 2015, at 7:57 AM, MD ABDUS SATTAR &lt;<a href="mailto:md-abdus.sattar@students.mq.edu.au" target="_blank"></a><a href="mailto:md-abdus.sattar@students.mq.edu.au" target="_blank">md-abdus.sattar@students.mq.edu.au</a>&gt;
              wrote:<br>
              &gt;<br>
              &gt; Dear Andrew<br>
              &gt; 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>
              &gt; &quot;reinit&quot;<br>
              &gt; &quot;sdfopen \Temp\<a href="http://sst7914.mnmean.v4.nc" rel="noreferrer" target="_blank">sst7914.mnmean.v4.nc</a>&quot;<br>
              &gt; &quot;set t 1 12&quot;<br>
              &gt; &quot;define avesst=ave(sst1,t+0,t=432,12)&quot;<br>
              &gt; &quot;modify avesst seasonal&quot;<br>
              &gt; &quot;set t 1 432&quot;<br>
              &gt; &quot;define sstanom=sst1-avesst&quot;<br>
              &gt;<br>
              &gt; &quot;define
              nino4=aave(sstanom,lon=-150,lon=160,lat=-5,lat=5)&quot;<br>
              &gt;<br>
              &gt; &quot;sdfopen \Users\mq43879691\documents\test2\<a href="http://mslp.mon.mean.nc" rel="noreferrer" target="_blank">mslp.mon.mean.nc</a>&quot;<br>
              &gt; &quot;set lon 0 360&quot;<br>
              &gt; &quot;set lat -90 90&quot;<br>
              &gt; &quot;set t 1&quot;<br>
              &gt; &quot;d tcorr(nino4,mslp.2,t=1,t=432)&quot;<br>
              &gt;<br>
              &gt; Output:<br>
            </span>&gt; &lt;image.png&gt;<br>
            <div>
              <div>&gt;<br>
                &gt; How can perform lead or lag correlation?<br>
                &gt;<br>
                &gt; Best regards<br>
                &gt; Abdus<br>
                &gt;<br>
                &gt; On Tue, Sep 15, 2015 at 6:48 AM, Andrew Friedman
                &lt;<a href="mailto:andfried@gmail.com" target="_blank">andfried@gmail.com</a>&gt;
                wrote:<br>
                &gt; Hi Abdus,<br>
                &gt;<br>
                &gt; Your timeseries is static because your boundaries
                for ssta do not have a time-varying dimension.<br>
                &gt;<br>
                &gt; There are different commands, depending on what
                you’re trying to do.<br>
                &gt;<br>
                &gt; 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>
                &gt;<br>
                &gt; 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>
                &gt;<br>
                &gt; Best,<br>
                &gt; Andrew<br>
                &gt;<br>
                &gt;<br>
                &gt; On Sep 13, 2015, at 8:01 AM, MD ABDUS SATTAR &lt;<a href="mailto:md-abdus.sattar@students.mq.edu.au" target="_blank"></a><a href="mailto:md-abdus.sattar@students.mq.edu.au" target="_blank">md-abdus.sattar@students.mq.edu.au</a>&gt;
                wrote:<br>
                &gt;<br>
                &gt; &gt; Hi Andrew<br>
                &gt; &gt; I was trying to set tloop, but still facing
                difficulties. I prepared the script as:<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 t 1 1937&quot;<br>
                &gt; &gt; &quot;define ssta=ave(sst,t=1501,t=1933,12)&quot;<br>
                &gt; &gt;<br>
                &gt; &gt; &quot;set lat 25&quot;<br>
                &gt; &gt; &quot;set lon 50&quot;<br>
                &gt; &gt; &quot;set lev 0&quot;<br>
                &gt; &gt; &quot;set t 1501 1933&quot;<br>
                &gt; &gt;<br>
                &gt; &gt;<br>
                &gt; &gt; &quot;d
                tloop(aave(ssta,lon=100,lon=170,lat=-5,lat=5))&quot;<br>
                &gt; &gt;<br>
                &gt; &gt; &quot;d
                tloop(aave(sst,lon=100,lon=170,lat=-5,lat=5))&quot;<br>
                &gt; &gt;<br>
                &gt; &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; &gt;<br>
                &gt; &gt;<br>
                &gt; &gt;<br>
                &gt; &gt; &lt;image.png&gt;<br>
                &gt; &gt;<br>
                &gt; &gt;<br>
                &gt; &gt; Thanking you<br>
                &gt; &gt;<br>
                &gt; &gt; Abdus<br>
                &gt; &gt;<br>
                &gt; &gt;<br>
                &gt; &gt;<br>
                &gt; &gt; On Fri, Sep 11, 2015 at 4:18 PM, Andrew
                Friedman &lt;<a href="mailto:andfried@gmail.com" target="_blank">andfried@gmail.com</a>&gt;
                wrote:<br>
                &gt; &gt; Hi Abdus,<br>
                &gt; &gt; You may need to use ‘tloop’ with aave: <a href="http://www.iges.org/grads/gadoc/gradfunctloop.html" rel="noreferrer" target="_blank"></a><a href="http://www.iges.org/grads/gadoc/gradfunctloop.html" target="_blank">http://www.iges.org/grads/gadoc/gradfunctloop.html</a><br>
                &gt; &gt; Andrew<br>
                &gt; &gt;<br>
                &gt; &gt; On Sep 11, 2015, at 7:05 AM, MD ABDUS SATTAR
                &lt;<a href="mailto:md-abdus.sattar@students.mq.edu.au" target="_blank">md-abdus.sattar@students.mq.edu.au</a>&gt;
                wrote:<br>
                &gt; &gt;<br>
                &gt; &gt; &gt; Dear GrADS Team<br>
                &gt; &gt; &gt; I am trying to calculate time series of
                El Nino SST anomaly in January for a specific time
                period.<br>
                &gt; &gt; &gt;<br>
                &gt; &gt; &gt; I wrote my script as:<br>
                &gt; &gt; &gt;<br>
                &gt; &gt; &gt; &quot;reinit&quot;<br>
                &gt; &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; &gt; &quot;set lon 100&quot;<br>
                &gt; &gt; &gt; &quot;set lat 25&quot;<br>
                &gt; &gt; &gt; &quot;set z 1&quot;<br>
                &gt; &gt; &gt; &quot;set t 1 600&quot;<br>
                &gt; &gt; &gt;<br>
                &gt; &gt; &gt; &quot;define ssta=ave(sst,t=1,t=600,12)&quot;<br>
                &gt; &gt; &gt;<br>
                &gt; &gt; &gt; &quot;define elnino =
                aave(ssta,lon=100,lon=170,lat=-5,lat=5)&quot;<br>
                &gt; &gt; &gt;<br>
                &gt; &gt; &gt; &quot;d elnino&quot;<br>
                &gt; &gt; &gt;<br>
                &gt; &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; &gt;<br>
                &gt; &gt; &gt; I look forward to your suggestion.<br>
                &gt; &gt; &gt;<br>
                &gt; &gt; &gt; Regards<br>
                &gt; &gt; &gt; Abdus<br>
                &gt; &gt; &gt; --<br>
                &gt; &gt; &gt; Md. Abdus Sattar<br>
                &gt; &gt; &gt; PhD Student<br>
                &gt; &gt; &gt; Department of Environmental Sciences<br>
                &gt; &gt; &gt; Level 2, Australian Hearing Hub Building<br>
                &gt; &gt; &gt;<br>
                &gt; &gt; &gt; Faculty of Science and Engineering<br>
                &gt; &gt; &gt; Macquarie University<br>
                &gt; &gt; &gt; NSW 2109 Australia<br>
                &gt; &gt; &gt;<br>
                &gt; &gt; &gt;<br>
                &gt; &gt; &gt; Cell: <a href="tel:%2B61404400401" value="+61404400401" target="_blank">+61404400401</a><br>
                &gt; &gt; &gt; Email: <a href="mailto:md-abdus.sattar@students.mq.edu.au" target="_blank">md-abdus.sattar@students.mq.edu.au</a><br>
                &gt; &gt; &gt;<br>
                &gt; &gt; &gt; AND<br>
                &gt; &gt; &gt;<br>
                &gt; &gt; &gt; Assistant Professor<br>
                &gt; &gt; &gt; Department of Disaster Risk Management
                (DRM)<br>
                &gt; &gt; &gt; Faculty of Disaster Management<br>
                &gt; &gt; &gt; Patuakhali Science and Technology
                University, Dumki, Patuakhali, Bangladesh<br>
                &gt; &gt; &gt;<br>
                &gt; &gt; &gt; Cell: <a href="tel:%2B8801716851612" value="+8801716851612" target="_blank">+8801716851612</a><br>
                &gt; &gt; &gt; Email: <a href="mailto:abdus.sattar@pstu.ac.bd" target="_blank">abdus.sattar@pstu.ac.bd</a><br>
                &gt; &gt; &gt;
                _______________________________________________<br>
                &gt; &gt; &gt; gradsusr mailing list<br>
                &gt; &gt; &gt; <a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a><br>
                &gt; &gt; &gt; <a href="http://gradsusr.org/mailman/listinfo/gradsusr" rel="noreferrer" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
                &gt; &gt;<br>
                &gt; &gt;<br>
                &gt; &gt;
                _______________________________________________<br>
                &gt; &gt; gradsusr mailing list<br>
                &gt; &gt; <a href="mailto:gradsusr@gradsusr.org" target="_blank">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; &gt;<br>
                &gt; &gt;<br>
                &gt; &gt;<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: <a href="tel:%2B61404400401" value="+61404400401" target="_blank">+61404400401</a><br>
                &gt; &gt; Email: <a href="mailto:md-abdus.sattar@students.mq.edu.au" target="_blank">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" target="_blank">+8801716851612</a><br>
                &gt; &gt; Email: <a href="mailto:abdus.sattar@pstu.ac.bd" target="_blank">abdus.sattar@pstu.ac.bd</a><br>
                &gt; &gt;
                _______________________________________________<br>
                &gt; &gt; gradsusr mailing list<br>
                &gt; &gt; <a href="mailto:gradsusr@gradsusr.org" target="_blank">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" target="_blank">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" target="_blank">+61404400401</a><br>
                &gt; Email: <a href="mailto:md-abdus.sattar@students.mq.edu.au" target="_blank">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" target="_blank">+8801716851612</a><br>
                &gt; Email: <a href="mailto:abdus.sattar@pstu.ac.bd" target="_blank">abdus.sattar@pstu.ac.bd</a><br>
                &gt; _______________________________________________<br>
                &gt; gradsusr mailing list<br>
                &gt; <a href="mailto:gradsusr@gradsusr.org" target="_blank">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" target="_blank">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>
          <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.8000001907349px">
                            <span style="font-size:12.8000001907349px"><br>
                            </span></div>
                          <div><span style="font-size:12.8000001907349px">Faculty
                              of Science and Engineering<br>
                              Macquarie University<br>
                            </span><span style="font-size:12.8000001907349px">NSW
                              2109 Australia</span><br>
                          </div>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          <div>Cell: <a href="tel:%2B61404400401" value="+61404400401" target="_blank">+61404400401</a></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.8000001907349px">Assistant
                              Professor</div>
                            <div style="font-size:12.8000001907349px">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: <a href="tel:%2B8801716851612" value="+8801716851612" target="_blank">+8801716851612</a></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>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
gradsusr mailing list
<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<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>
<br></blockquote></div><br></div>