<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">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><br></div><div><br><div><div>On Jan 28, 2015, at 8:36 PM, Kyle Griffin &lt;<a href="mailto:ksgriffin2@wisc.edu">ksgriffin2@wisc.edu</a>&gt; wrote:</div><br class="Apple-interchange-newline"><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">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 class="gmail_signature"><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:0 0 0 .8ex;border-left:1px #ccc 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>
&nbsp; extGmean!0 = "lat"<br>
&nbsp; extGmean!1 = "lon"<br>
&nbsp; lat = fspan(-85,85,85)<br>
&nbsp; lon = fspan(0,360,72)<br>
&nbsp; lat@longname = "latitude"<br>
&nbsp; lat@units = "degrees_north"<br>
&nbsp; lon@longname ="longitude"<br>
&nbsp; lon@units = "degrees_east"<br>
&nbsp; extGmean&amp;lat = lat<br>
&nbsp; 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></body></html>