<div dir="ltr">Thanks, Adam. I double check my script and found the problem that I mentioned is caused by something else, the function dim_avg_n_Wrap works well. <br></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Tue, Oct 22, 2013 at 5:29 PM, Adam Phillips <span dir="ltr">&lt;<a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.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 Cheryl,<br>
    Please add the following code to your script and respond back to the
    ncl-talk email list with the results:<br>
    <br>
    printVarSummary(f)<br>
    ff = dim_avg_n_Wrap(f,0)<br>
    printVarSummary(ff)<br>
    <br>
    I not sure what you mean by: &quot;Lon in the contour plotting changed
    180 degree compare to the plotting for each time. &quot; Can you also
    send back some plots showing the issue? <br>
    <br>
    Thanks,<br>
    Adam<div><div class="h5"><br>
    <br>
    <div>On 10/22/2013 08:27 AM, cheryl Ma
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">Thanks, Dennis.<br>
        <br>
        The problem is still there. Lon in the contour plotting changed
        180 degree compare to the plotting for each time. <br>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">On Tue, Oct 22, 2013 at 10:08 AM,
          Dennis Shea <span dir="ltr">&lt;<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>&gt;</span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You should
            use<br>
            <br>
               ff = dim_ang_n_Wrap(f, 0)<br>
            <br>
            --<br>
            Please read the Mini-Language Manual (Section 5.6.1)<br>
            <br>
            <a href="http://www.ncl.ucar.edu/Document/Manuals/language_man.pdf" target="_blank">http://www.ncl.ucar.edu/Document/Manuals/language_man.pdf</a>
            <div>
              <div><br>
                <br>
                On 10/22/13 7:31 AM, cheryl Ma wrote:<br>
              </div>
            </div>
            <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div>
                <div>
                  Hi everyone,<br>
                  <br>
                  I made contour plotting to an array f (time,lat,lon)
                  on each time and<br>
                  checked lat and lon using printVarSummary(f), and the
                  f look good as<br>
                  <br>
                  Number of Dimensions: 3<br>
                  Dimensions and sizes:   [31] x [lat | 180] x [lon |
                  360]<br>
                  Coordinates:<br>
                               lat: [-89.5..89.5]<br>
                               lon: [-179.5..179.5]<br>
                  <br>
                  But when I calculate the average by using
                  ff=dim_avg_n(f),<br>
                  printVarSummary(ff) does not show the Coordinates,
                  i.e.<br>
                  <br>
                  Number of Dimensions: 2<br>
                  Dimensions and sizes:   [180] x [360]<br>
                  Coordinates:<br>
                  <br>
                  Also I made a contour plot of ff and saw that somehow
                  the lon changed by<br>
                  180 degree. dim_avg_n suppose keep the original lat
                  and lon, right?<br>
                  <br>
                  what caused the change of lon? thanks,<br>
                  <br>
                  <br>
                  <br>
                </div>
              </div>
              _______________________________________________<br>
              ncl-talk mailing list<br>
              List instructions, subscriber options, unsubscribe:<br>
              <a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
              <br>
            </blockquote>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a>
</pre>
    </blockquote>
    <br>
    </div></div><span class="HOEnZb"><font color="#888888"><pre cols="72">-- 
______________________________________________________________
Adam Phillips                                <a href="mailto:asphilli@ucar.edu" target="_blank">asphilli@ucar.edu</a>
NCAR/Climate and Global Dynamics Division       <a href="tel:%28303%29%20497-1726" value="+13034971726" target="_blank">(303) 497-1726</a>    
P.O. Box 3000                                  
Boulder, CO 80307-3000    <a href="http://www.cgd.ucar.edu/cas/asphilli" target="_blank">http://www.cgd.ucar.edu/cas/asphilli</a>
</pre>
  </font></span></div>

<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>