<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Sunmin,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">[Thanks, Alan, for helping out here.]</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Alan is correct that setting res@gsnAddCyclic = False should have normally fixed the problem, but there may be other issues with your coordinate arrays.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Did this problem get resolved when you set the above resource to False, or are you still having issues? If you are still having issues, please include all error messages, if any, and information about your variable (printVarSummary, etc).</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 29, 2015 at 12:14 PM, Alan Brammer <span dir="ltr">&lt;<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.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 dir="ltr">Having just tried to recreate this problem (tho I can&#39;t actually get half a plot at the moment).  I got the below error repeatedly.    Did you get this error?  If so the 2nd line tells you exactly what to do. <div><br><div><div><b>(0)<span style="white-space:pre-wrap">        </span>gsn_add_cyclic: Warning: The range of your longitude coordinate array is at least 360.</b></div><div><b><u>(0)<span style="white-space:pre-wrap">        </span>You may want to set gsnAddCyclic to False to avoid a warning</u></b></div><div><b>(0)<span style="white-space:pre-wrap">        </span>message from the spline function.</b></div><div><b>warning:_NhlCreateSplineCoordApprox: Attempt to create spline approximation for X axis failed: consider adjusting trXTensionF value</b></div><div><b>warning:IrTransInitialize: error creating spline approximation for trXCoordPoints; defaulting to linear</b></div><div><b>warning:gsnAddCylic is not a valid resource in gsnapp_contour at this time</b></div><div><b>fatal:ContourPlotDraw: coordinates are out of range for drawing over a map: standard AreaFill rendering method will not work;</b></div><div><b> consider setting the resource trGridType to &quot;TriangularMesh&quot; if coordinates contain missing values</b></div><div><div class="h5"><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 29, 2015 at 2:06 PM, Alan Brammer <span dir="ltr">&lt;<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</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"><div dir="ltr">Sun, <div><br><div>Sorry I didn&#39;t reply to your other thread. Hoped someone else would step in. </div><div><br><div> Did you try setting off res@gsnAddCyclic = False  as I suggested in my other reply? </div><div><br></div><div>Your data already has the cyclic therefore ncl should not be told to try and add it again. </div><div><br></div><div><br></div></div></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 28, 2015 at 11:37 PM, Sunmin Park <span dir="ltr">&lt;<a href="mailto:mireiyue@gmail.com" target="_blank">mireiyue@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"><div style="word-wrap:break-word">Thank you Kyle<div><br></div><div>I already used the function and when I print out the variable (printVarSummary), it changed from (0,360) to (-180,180)</div><div>But when I plot them the figures only shows half (0,180E part).</div><div><br></div><div>Sun-</div><div><div><div><br></div><div><br><div><div>On Jan 28, 2015, at 8:36 PM, Kyle Griffin &lt;<a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a>&gt; wrote:</div><br><blockquote type="cite"><div dir="ltr">Try the lonFlip function. It is designed to do this. While changing the coordinates is logical, you also must change the actual *data* as well to be similarly reordered. A simple<div><br></div><div>extGmean = lonFlip(extGmean)</div><div><br></div><div>should work.</div><div><br></div><div><a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/lonFlip.shtml" target="_blank">https://www.ncl.ucar.edu/Document/Functions/Contributed/lonFlip.shtml</a><br></div><div><br></div><div><br></div><div>Kyle</div></div><div class="gmail_extra"><br clear="all"><div><div><div dir="ltr">----------------------------------------<div>Kyle S. Griffin</div><div>Department of Atmospheric and Oceanic Sciences</div><div>University of Wisconsin - Madison</div><div>Room 1421</div><div>1225 W Dayton St, Madison, WI 53706</div><div>Email: <a href="mailto:ksgriffin2@wisc.edu" target="_blank">ksgriffin2@wisc.edu</a></div></div></div></div>
<br><div class="gmail_quote">On Wed, Jan 28, 2015 at 8:39 PM, Sunmin Park <span dir="ltr">&lt;<a href="mailto:mireiyue@gmail.com" target="_blank">mireiyue@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">Dear NCL users<br>
<br>
Following question from the previous email that was about problem creating figure. As I looked at the original data they had different coordinate.<br>
<br>
Is there way that we can change longitude [-180,180] to [0,360]? I am trying to compare 4 data sets and one data set has [-180,180] and the others have [0,360]. I changed [-180,180] to [0,3600 using<br>
<br>
  extGmean!0 = &quot;lat&quot;<br>
  extGmean!1 = &quot;lon&quot;<br>
  lat = fspan(-85,85,85)<br>
  lon = fspan(0,360,72)<br>
  lat@longname = &quot;latitude&quot;<br>
  lat@units = &quot;degrees_north&quot;<br>
  lon@longname =&quot;longitude&quot;<br>
  lon@units = &quot;degrees_east&quot;<br>
  extGmean&amp;lat = lat<br>
  extGmean&amp;lon = lon<br>
<br>
but It give wrong plot, looks like changing west and east.<br>
How I can fix problem?<br>
Thank you for any comments and helps.<br>
<br>
Sun-<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>
</blockquote></div><br></div>
</blockquote></div><br></div></div></div></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>
</div></div></blockquote></div><br></div></div></div></div></div></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>