<font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">Hi Ncl Talk,</font><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; &nbsp;I used get_isolines to get<span style="color: rgb(51, 51, 51);">&nbsp;the points that define a contour line .When I printed the longitude of these points , &nbsp;the distribution of the longitude wasn't the same(gonna show in the following example) ,may be [0~-360] or [20~-340],etc. I have expected the function may return the longitude as [0~360] or [-180~180]. I googled it ,but didn't help.I still don't know what caused the effect, so I ask you for help. Thanks!</span></font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier"><br></font></div><div><font color="#333333" style="background-color: rgb(255, 255, 255);" size="3" face="Courier">Here is the code and resluts:</font></div><div><font color="#333333"><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier"><br></font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">load "$NCARG_ROOT/lib/ncarg/nclscripts/contrib/cd_string.ncl"</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier"><br></font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">begin</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier"><br></font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">f1=addfile("pt.nc","r") &nbsp; &nbsp; &nbsp; &nbsp; ;pt(time,lat,lon)</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">pt=short2flt(f1-&gt;pt) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">pt=lonFlip(pt) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;;lon=0~360degrees &nbsp;&nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier"><br></font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">n=dimsizes(pt&amp;time)</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier"><br></font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier"><br></font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; wks = gsn_open_wks("pdf","sypt_all") &nbsp; &nbsp; &nbsp; &nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp;&nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; res &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= True &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; res@gsnDraw &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= False</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; res@gsnFrame &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = False</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier"><br></font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; res@cnFillOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; = False &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; res@cnLinesOn &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= True &nbsp; &nbsp; &nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier"><br></font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; res@cnLevelSelectionMode &nbsp; = "ExplicitLevels" &nbsp;&nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; res@cnLevels &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= (/350,360/)&nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier"><br></font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp;&nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; res@mpMinLatF &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;= 0 &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; res@mpCenterLonF &nbsp; &nbsp; &nbsp; &nbsp; =180 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">res@trGridType = "TriangularMesh" &nbsp;&nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier"><br></font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier"><br></font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">do i = 0, n-1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;time</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; &nbsp; plot=gsn_csm_contour_map_ce(wks, pt(i,:,:), res) &nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; &nbsp;&nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; &nbsp; &nbsp;isolines = get_isolines(plot@contour,"plot") &nbsp;&nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; &nbsp; &nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; &nbsp; do j= 0, ListCount(isolines) - 1</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; &nbsp; &nbsp; iso := isolines[j] &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; &nbsp; &nbsp; idx=maxind(iso@n_points)</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; &nbsp; &nbsp; b = iso@start_point(idx) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; &nbsp; &nbsp; e = b + iso@n_points(idx) - 1 &nbsp; &nbsp; &nbsp;&nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; &nbsp; &nbsp; y := iso(0,b:e) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; &nbsp; &nbsp; x := iso(1,b:e) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ;y=lat,x=lon</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; &nbsp; &nbsp; print(x)</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">&nbsp; &nbsp; end do</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">end do</font></div><div><font style="background-color: rgb(255, 255, 255);" size="3" face="Courier">end&nbsp;</font></div><div style="font-family: verdana, sans-serif; font-size: 13.3333px;"><br></div><div style="font-family: verdana, sans-serif; font-size: 13.3333px;"><table border="0" cellpadding="0" cellspacing="0" width="144" style="border-collapse:  collapse;width:108pt">  <colgroup><col width="72" span="2" style="width:54pt">  </colgroup><tbody><tr height="19" style="height:14.25pt">   <td height="19" width="72" style="height:14.25pt;width:54pt">result1</td>   <td width="72" style="width:54pt">result2</td>  </tr>  <tr height="19" style="height:14.25pt">   <td height="19" align="right" style="height:14.25pt">0</td>   <td class="xl65" align="right" width="72" style="width:54pt">0</td>  </tr>  <tr height="19" style="height:14.25pt">   <td height="19" align="right" style="height:14.25pt">-1.8</td>   <td class="xl65" align="right" width="72" style="width:54pt">-1.3</td>  </tr>  <tr height="19" style="height:14.25pt">   <td height="19" align="right" style="height:14.25pt">-2.5</td>   <td class="xl65" align="right" width="72" style="width:54pt">-2.5</td>  </tr>  <tr height="19" style="height:14.25pt">   <td height="19" style="height:14.25pt">&nbsp; &nbsp; &nbsp;…</td>   <td class="xl65" width="72" style="width:54pt">&nbsp; &nbsp; &nbsp;…</td>  </tr>  <tr height="19" style="height:14.25pt">   <td height="19" align="right" style="height:14.25pt">-358.9</td>   <td class="xl65" align="right" width="72" style="width:54pt">-339.8</td>  </tr>  <tr height="19" style="height:14.25pt">   <td height="19" align="right" style="height:14.25pt">-359.7</td>   <td class="xl65" align="right" width="72" style="width:54pt">-340</td>  </tr>  <tr height="19" style="height:14.25pt">   <td height="19" align="right" style="height:14.25pt">-360</td>   <td class="xl65" width="72" style="width:54pt">&nbsp; &nbsp; &nbsp;…</td>  </tr>  <tr height="19" style="height:14.25pt">   <td height="19" style="height:14.25pt"></td>   <td class="xl65" align="right" width="72" style="width:54pt">20</td>  </tr>  <tr height="19" style="height:14.25pt">   <td height="19" style="height:14.25pt"></td>   <td class="xl65" align="right" width="72" style="width:54pt">18.6</td>  </tr>  <tr height="19" style="height:14.25pt">   <td height="19" style="height:14.25pt"></td>   <td class="xl65" width="72" style="width:54pt">&nbsp; &nbsp; &nbsp;…</td>  </tr>  <tr height="19" style="height:14.25pt">   <td height="19" style="height:14.25pt"></td>   <td class="xl65" align="right" width="72" style="width:54pt">2.5</td>  </tr>  <tr height="19" style="height:14.25pt">   <td height="19" style="height:14.25pt"></td>   <td class="xl65" align="right" width="72" style="width:54pt">0.5</td>  </tr>  <tr height="19" style="height:14.25pt">   <td height="19" style="height:14.25pt"></td>   <td class="xl65" align="right" width="72" style="width:54pt">0</td>  </tr></tbody></table><br></div></font></div><br><br><span><br>ncl-talk mailing list<br><a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>List instructions, subscriber options, unsubscribe:<br><a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailma<wbr>n/listinfo/ncl-talk</wbr></a></span>