<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi all,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Unfortunately, gsnAddCyclic isn't seen by gsn_coordinates. This is an omission that should be fixed. I'll make a ticket for this.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Meanwhile, you can try the gsn_add_cyclic_point function, which is unadvertised (and hence not guaranteed to live forever). This function increases the input array by 1 point in the longitude dimension and it increases the longitude array associated with it. I think it should work with coordinate arrays and lat2d/lon2d attributes.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><p class="MsoNormal" style="font-size:12.8000001907349px"> pres = True<u></u><u></u></p><p class="MsoNormal" style="font-size:12.8000001907349px"> pres@gsnCoordsAsLines = True ; Default is points<u></u><u></u></p><p class="MsoNormal" style="font-size:12.8000001907349px"> pres@gsLineThicknessF = .1<u></u><u></u></p><p class="MsoNormal" style="font-size:12.8000001907349px"> pres@gsLineColor = "Gray25"<u></u><u></u></p><p class="MsoNormal" style="font-size:12.8000001907349px"> pres@gsnCoordsAttach = True<u></u><u></u></p><p class="MsoNormal" style="font-size:12.8000001907349px"> gsn_coordinates(wks,plot1,gsn_add_cyclic_point(<span style="font-size:12.8000001907349px">vMTemp)</span><span style="font-size:12.8000001907349px">,pres)</span></p><p class="MsoNormal" style="font-size:12.8000001907349px"><br></p><p class="MsoNormal" style="font-size:12.8000001907349px">I didn't actually try this (because I'm running out the door as I type this), so let me know if it doesn't work.</p><p class="MsoNormal" style="font-size:12.8000001907349px"><br></p><p class="MsoNormal" style="font-size:12.8000001907349px">--Mary</p><p class="MsoNormal" style="font-size:12.8000001907349px"><br></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 27, 2015 at 7:20 AM, Alan Brammer <span dir="ltr"><<a href="mailto:abrammer@albany.edu" target="_blank">abrammer@albany.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Didn't Kyle Griffin reply to this message 2 days ago? </div><div class="gmail_default" style="font-family:verdana,sans-serif">Did his suggestion not work?</div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">"<span style="color:rgb(0,0,0);font-size:13px;font-family:arial,sans-serif">Hi Arnold,</span></div><div dir="ltr" style="color:rgb(0,0,0);font-size:13px"><div><br></div><div>Have you tried also setting</div><div><br></div><div>pres@gsnAddCyclic = True</div><div><br></div><div>This resource defaults to true in some of the newest versions of NCL, but defaulted to False for a long time and produces issues like this. gsnAddCyclic basically tells NCL to contour between the first (longitude=0) and last (longitude=191 in your case) the same as it does other adjacent points, despite these points not technically being adjacent in the dataset.</div><div><br></div><div>If there is still an issues after trying that, let us know and be sure to include the list.</div><div><br></div><div><br></div><div>Kyle</div></div><div class="gmail_extra" style="color:rgb(0,0,0);font-size:13px"><br clear="all"><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 class="gmail_default" style="font-family:verdana,sans-serif">"</div><br></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On 27 May 2015 at 02:48, <span dir="ltr"><<a href="mailto:Arnold.Sullivan@csiro.au" target="_blank">Arnold.Sullivan@csiro.au</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
<div lang="EN-AU" link="blue" vlink="purple">
<div>
<p class="MsoNormal">Hi there,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Somehow I get a gap along the zero degree while plot polar region plus using gsn_coordinates to plot grid lat/lon lines.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Is there any way to fill that gap?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The code that I use to plot the grid lines:<u></u><u></u></p>
<p class="MsoNormal">;---Data and grid read in:<u></u><u></u></p>
<p class="MsoNormal"> mskFile = addfile("<a href="http://access.n96.newu2.nc" target="_blank">access.n96.newu2.nc</a>","r")<u></u><u></u></p>
<p class="MsoNormal"> vTemp = rm_single_dims(mskFile->NEWVAR2(0,0,:,::2))<u></u><u></u></p>
<p class="MsoNormal"> vMTemp = vTemp <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">;---Call function to attach lat/lon lines.<u></u><u></u></p>
<p class="MsoNormal"> pres = True<u></u><u></u></p>
<p class="MsoNormal"> pres@gsnCoordsAsLines = True ; Default is points<u></u><u></u></p>
<p class="MsoNormal"> pres@gsLineThicknessF = .1<u></u><u></u></p>
<p class="MsoNormal"> pres@gsLineColor = "Gray25"<u></u><u></u></p>
<p class="MsoNormal"> pres@gsnCoordsAttach = True <u></u><u></u></p>
<p class="MsoNormal"> gsn_coordinates(wks,plot1,vMTemp,pres)<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The input file information:<u></u><u></u></p>
<p class="MsoNormal">;---Ncdump the netcdf file:<u></u><u></u></p>
<p class="MsoNormal">dimensions:<u></u><u></u></p>
<p class="MsoNormal"> LONGITUDE = 192 ;<u></u><u></u></p>
<p class="MsoNormal"> LATITUDE_1 = 144 ;<u></u><u></u></p>
<p class="MsoNormal"> HYBRID_HT = 85 ;<u></u><u></u></p>
<p class="MsoNormal">variables:<u></u><u></u></p>
<p class="MsoNormal"> double LONGITUDE(LONGITUDE) ;<u></u><u></u></p>
<p class="MsoNormal"> LONGITUDE:units = "degrees_east" ;<u></u><u></u></p>
<p class="MsoNormal"> LONGITUDE:point_spacing = "even" ;<u></u><u></u></p>
<p class="MsoNormal"> LONGITUDE:modulo = " " ;<u></u><u></u></p>
<p class="MsoNormal"> LONGITUDE:axis = "X" ;<u></u><u></u></p>
<p class="MsoNormal"> double LATITUDE_1(LATITUDE_1) ;<u></u><u></u></p>
<p class="MsoNormal"> LATITUDE_1:units = "degrees_north" ;<u></u><u></u></p>
<p class="MsoNormal"> LATITUDE_1:point_spacing = "even" ;<u></u><u></u></p>
<p class="MsoNormal"> LATITUDE_1:axis = "Y" ;<u></u><u></u></p>
<p class="MsoNormal"> float NEWVAR2(T, HYBRID_HT, LATITUDE_1, LONGITUDE) ;<u></u><u></u></p>
<p class="MsoNormal"> NEWVAR2:missing_value = -1.e+34f ;<u></u><u></u></p>
<p class="MsoNormal"> NEWVAR2:_FillValue = -1.e+34f ;<u></u><u></u></p>
<p class="MsoNormal"> NEWVAR2:long_name = "U[G=NEW_GRID]" ;<u></u><u></u></p>
<p class="MsoNormal"> NEWVAR2:history = "From access.n96.uv" ;<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Regards,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Arnold<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<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></div><br></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>