<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Mary<br>
    That worked when I tried it. Thanks.<br>
    <br>
    Would I be better off using the regular gsn commands to create
    animations or is set values what one should use if I am trying to
    make animations that don't take too long to create?<br>
    <br>
    Cathy<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 11/19/14 3:30 PM, Mary Haley wrote:<br>
    </div>
    <blockquote
cite="mid:CACNN_CK7GjNr07K0Gfhv2eRjUcbrAxOm1QTZGEhbqvNyydJN+A@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div class="gmail_default" style="font-size:small">​Hi Cathy,</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_default" style="font-size:small">None of the
          "gsnXXXXX" resources are recognized by setvalues or getvalues,
          because the gsnXXXX resources are ones that the gsn_xxxx
          scripts recognize, and not one that the core NCL language
          recognizes.</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_default" style="font-size:small">If you need
          to plot the data with the cyclic point added, but still be
          able to use setvalues in the way that this example does, then
          you can try the unadvertised gsn_add_cyclic_point function
          which is what "gsnAddCyclic" uses "under the hood".</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_default" style="font-size:small">So, for
          example, instead of:</div>
        <div class="gmail_default" style="font-size:small"><br>
        </div>
        <div class="gmail_default" style="">
          <div class="gmail_default" style="font-size:small"><font
              face="courier new, monospace">  t  = t(0,:,:)</font></div>
          <div style="font-size:small"><br>
          </div>
          <div style="font-size:small">use this:</div>
          <div style="font-size:small"><br>
          </div>
          <div style="">
            <div style=""><font face="courier new, monospace">  t  =
                gsn_add_cyclic_point(a-&gt;t(0,:,:))                    
                ; Read first time step     </font></div>
          </div>
          <div style="font-size:small"><br>
          </div>
          <div style="font-size:small">and instead of:</div>
        </div>
        <div class="gmail_default" style="font-size:small">
          <pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap">    setvalues plot@data
      "sfDataArray" : (/a-&gt;t(i,:,:)/)
    end setvalues</pre>
          <pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">use:</font></pre>
          <pre style="color:rgb(0,0,0);word-wrap:break-word;white-space:pre-wrap"><pre style="word-wrap:break-word;white-space:pre-wrap">    setvalues plot@data
      "sfDataArray" : (/gsn_add_cyclic_point(a-&gt;t(i,:,:))/)
    end setvalues</pre><pre style="word-wrap:break-word;white-space:pre-wrap"><font face="arial, helvetica, sans-serif">--Mary</font></pre><pre style="word-wrap:break-word;white-space:pre-wrap">
</pre></pre>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Wed, Nov 19, 2014 at 12:44 PM, Cathy
          Smith (NOAA Affiliate) <span dir="ltr">&lt;<a
              moz-do-not-send="true" href="mailto:cathy.smith@noaa.gov"
              target="_blank">cathy.smith@noaa.gov</a>&gt;</span> wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi-<br>
            I followed this example<br>
            <br>
            <a moz-do-not-send="true"
              href="https://www.ncl.ucar.edu/Applications/Scripts/animate_1.ncl"
              target="_blank">https://www.ncl.ucar.edu/Applications/Scripts/animate_1.ncl</a><br>
            <br>
            to generate animations. If I set<br>
            <br>
            res@gsnAddCyclic       = True<br>
            <br>
            for the first plot, it is plotted correctly. But, subsequent
            plots all<br>
            plotted incorrectly as it appears that set values didn't
            recognize the<br>
            cyclic True setting.<br>
            (The array values were stretched to fill the 1 longitude
            longer data<br>
            array). We could verify this was the case as when we
            manually created an<br>
            extra longitude for the data array after the first plot,
            then it worked.<br>
            <br>
            Can set values be made to use use the gsnAddCycle setting
            that exists?<br>
            Or, is there another way that doesn't involve manually
            adding the extra<br>
            longitude?<br>
            <br>
            Let me know if more info is needed. In this case, I was
            using V6.1.2<br>
            <br>
            Cathy Smith<br>
            <br>
            <br>
            <br>
            <br>
            ----------------------------------------------<br>
            NOAA/ESRL PSD and CU CIRES<br>
            <a moz-do-not-send="true" href="tel:303-497-6263"
              value="+13034976263">303-497-6263</a><br>
            <a moz-do-not-send="true"
              href="http://www.esrl.noaa.gov/psd/people/cathy.smith/"
              target="_blank">http://www.esrl.noaa.gov/psd/people/cathy.smith/</a><br>
            Emails about data/webpages may get quicker responses from
            emailing<br>
            <a moz-do-not-send="true"
              href="mailto:esrl.psd.data@noaa.gov">esrl.psd.data@noaa.gov</a><br>
            _______________________________________________<br>
            ncl-talk mailing list<br>
            List instructions, subscriber options, unsubscribe:<br>
            <a moz-do-not-send="true"
              href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk"
              target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
          </blockquote>
        </div>
        <br>
      </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
----------------------------------------------
NOAA/ESRL PSD and CU CIRES
303-497-6263
<a class="moz-txt-link-freetext" href="http://www.esrl.noaa.gov/psd/people/cathy.smith/">http://www.esrl.noaa.gov/psd/people/cathy.smith/</a>

Emails about data/webpages may get quicker responses from emailing 
<a class="moz-txt-link-abbreviated" href="mailto:esrl.psd.data@noaa.gov">esrl.psd.data@noaa.gov</a></pre>
  </body>
</html>