<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi Abdus/Andrew,<br>
    <br>
    I'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>
    "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's suggestion<br>
    <br>
    "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<br>
    <br>
    <div class="moz-cite-prefix">On 9/22/15 4:41 PM, MD ABDUS SATTAR
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAKnWhdny2_a5TtSds=cx52bA9BQ19JsFfOggQqX89-XmPYRE4Q@mail.gmail.com"
      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 moz-do-not-send="true"
              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; "define
            nino4=aave(sstanom,lon=-150,lon=160,lat=-5,lat=5)”<br>
            <br>
            <a moz-do-not-send="true"
              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>
            "define nino4=aave(sstanom,lon=160,lon=-150,lat=-5,lat=5)”
            OR "define nino4=aave(sstanom,lon=160,lon=210,lat=-5,lat=5)”<br>
            <br>
            Best, Andrew<br>
            <span class=""><br>
              &gt; On Sep 22, 2015, at 7:57 AM, MD ABDUS SATTAR &lt;<a
                moz-do-not-send="true"
                href="mailto:md-abdus.sattar@students.mq.edu.au"><a class="moz-txt-link-abbreviated" href="mailto:md-abdus.sattar@students.mq.edu.au">md-abdus.sattar@students.mq.edu.au</a></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; "reinit"<br>
              &gt; "sdfopen \Temp\<a moz-do-not-send="true"
                href="http://sst7914.mnmean.v4.nc" rel="noreferrer"
                target="_blank">sst7914.mnmean.v4.nc</a>"<br>
              &gt; "set t 1 12"<br>
              &gt; "define avesst=ave(sst1,t+0,t=432,12)"<br>
              &gt; "modify avesst seasonal"<br>
              &gt; "set t 1 432"<br>
              &gt; "define sstanom=sst1-avesst"<br>
              &gt;<br>
              &gt; "define
              nino4=aave(sstanom,lon=-150,lon=160,lat=-5,lat=5)"<br>
              &gt;<br>
              &gt; "sdfopen \Users\mq43879691\documents\test2\<a
                moz-do-not-send="true" href="http://mslp.mon.mean.nc"
                rel="noreferrer" target="_blank">mslp.mon.mean.nc</a>"<br>
              &gt; "set lon 0 360"<br>
              &gt; "set lat -90 90"<br>
              &gt; "set t 1"<br>
              &gt; "d tcorr(nino4,mslp.2,t=1,t=432)"<br>
              &gt;<br>
              &gt; Output:<br>
            </span>&gt; &lt;image.png&gt;<br>
            <div class="HOEnZb">
              <div class="h5">&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 moz-do-not-send="true"
                  href="mailto:andfried@gmail.com">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 moz-do-not-send="true"
                  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
                  moz-do-not-send="true"
                  href="mailto:md-abdus.sattar@students.mq.edu.au"><a class="moz-txt-link-abbreviated" href="mailto:md-abdus.sattar@students.mq.edu.au">md-abdus.sattar@students.mq.edu.au</a></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; "reinit"<br>
                &gt; &gt; "sdfopen \Users\mq43879691\documents\test2\<a
                  moz-do-not-send="true" href="http://sst.mnmean.v4.nc"
                  rel="noreferrer" target="_blank">sst.mnmean.v4.nc</a>"<br>
                &gt; &gt; "set t 1 1937"<br>
                &gt; &gt; "define ssta=ave(sst,t=1501,t=1933,12)"<br>
                &gt; &gt;<br>
                &gt; &gt; "set lat 25"<br>
                &gt; &gt; "set lon 50"<br>
                &gt; &gt; "set lev 0"<br>
                &gt; &gt; "set t 1501 1933"<br>
                &gt; &gt;<br>
                &gt; &gt;<br>
                &gt; &gt; "d
                tloop(aave(ssta,lon=100,lon=170,lat=-5,lat=5))"<br>
                &gt; &gt;<br>
                &gt; &gt; "d
                tloop(aave(sst,lon=100,lon=170,lat=-5,lat=5))"<br>
                &gt; &gt;<br>
                &gt; &gt; I can display time series of El Nino by using
                sst value ("d
                tloop(aave(sst,lon=100,lon=170,lat=-5,lat=5))").
                However, I would like use to ssta ("d
                tloop(aave(ssta,lon=100,lon=170,lat=-5,lat=5))") 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 moz-do-not-send="true"
                  href="mailto:andfried@gmail.com">andfried@gmail.com</a>&gt;
                wrote:<br>
                &gt; &gt; Hi Abdus,<br>
                &gt; &gt; You may need to use ‘tloop’ with aave: <a
                  moz-do-not-send="true"
                  href="http://www.iges.org/grads/gadoc/gradfunctloop.html"
                  rel="noreferrer" target="_blank"><a class="moz-txt-link-freetext" href="http://www.iges.org/grads/gadoc/gradfunctloop.html">http://www.iges.org/grads/gadoc/gradfunctloop.html</a></a><br>
                &gt; &gt; Andrew<br>
                &gt; &gt;<br>
                &gt; &gt; On Sep 11, 2015, at 7:05 AM, MD ABDUS SATTAR
                &lt;<a moz-do-not-send="true"
                  href="mailto:md-abdus.sattar@students.mq.edu.au">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; "reinit"<br>
                &gt; &gt; &gt; "sdfopen
                \Users\mq43879691\documents\test2\<a
                  moz-do-not-send="true" href="http://sst.mnmean.v4.nc"
                  rel="noreferrer" target="_blank">sst.mnmean.v4.nc</a>"<br>
                &gt; &gt; &gt; "set lon 100"<br>
                &gt; &gt; &gt; "set lat 25"<br>
                &gt; &gt; &gt; "set z 1"<br>
                &gt; &gt; &gt; "set t 1 600"<br>
                &gt; &gt; &gt;<br>
                &gt; &gt; &gt; "define ssta=ave(sst,t=1,t=600,12)"<br>
                &gt; &gt; &gt;<br>
                &gt; &gt; &gt; "define elnino =
                aave(ssta,lon=100,lon=170,lat=-5,lat=5)"<br>
                &gt; &gt; &gt;<br>
                &gt; &gt; &gt; "d elnino"<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: +61404400401<br>
                &gt; &gt; &gt; Email: <a moz-do-not-send="true"
                  href="mailto:md-abdus.sattar@students.mq.edu.au">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 moz-do-not-send="true"
                  href="tel:%2B8801716851612" value="+8801716851612">+8801716851612</a><br>
                &gt; &gt; &gt; Email: <a moz-do-not-send="true"
                  href="mailto:abdus.sattar@pstu.ac.bd">abdus.sattar@pstu.ac.bd</a><br>
                &gt; &gt; &gt;
                _______________________________________________<br>
                &gt; &gt; &gt; gradsusr mailing list<br>
                &gt; &gt; &gt; <a moz-do-not-send="true"
                  href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
                &gt; &gt; &gt; <a moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
                &gt; &gt; <a moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  href="tel:%2B61404400401" value="+61404400401">+61404400401</a><br>
                &gt; &gt; Email: <a moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  href="tel:%2B8801716851612" value="+8801716851612">+8801716851612</a><br>
                &gt; &gt; Email: <a moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
                &gt; &gt; <a moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
                &gt; <a moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  href="tel:%2B61404400401" value="+61404400401">+61404400401</a><br>
                &gt; Email: <a moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  href="tel:%2B8801716851612" value="+8801716851612">+8801716851612</a><br>
                &gt; Email: <a moz-do-not-send="true"
                  href="mailto:abdus.sattar@pstu.ac.bd">abdus.sattar@pstu.ac.bd</a><br>
                &gt; _______________________________________________<br>
                &gt; gradsusr mailing list<br>
                &gt; <a moz-do-not-send="true"
                  href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
                &gt; <a moz-do-not-send="true"
                  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 moz-do-not-send="true"
                  href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
                <a moz-do-not-send="true"
                  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.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: +61404400401</div>
                          <div>Email: <a moz-do-not-send="true"
                              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: +8801716851612</div>
                          <div>Email: <a moz-do-not-send="true"
                              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 class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
gradsusr mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a>
<a class="moz-txt-link-freetext" href="http://gradsusr.org/mailman/listinfo/gradsusr">http://gradsusr.org/mailman/listinfo/gradsusr</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>