<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"><<a href="mailto:mireiyue@gmail.com" target="_blank">mireiyue@gmail.com</a>></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>
extGmean!0 = "lat"<br>
extGmean!1 = "lon"<br>
lat = fspan(-85,85,85)<br>
lon = fspan(0,360,72)<br>
lat@longname = "latitude"<br>
lat@units = "degrees_north"<br>
lon@longname ="longitude"<br>
lon@units = "degrees_east"<br>
extGmean&lat = lat<br>
extGmean&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>