<div dir="ltr"><div><div>Is
 there an **NCL supported**  &quot;method to get the locations of a threshold
 value?&quot; <br><br>IE: threshold value =&gt; contour level? To my knowledge, the short answer is
 &quot;no&quot;.<br><div><br></div>I know of no way to retrieve the lat/lon locations of a specific or an arbitrary contour level.<br><br>====<br><br><div><div>This
 is a task that is conceptually easy to address. One simple method is to
 use linear interpolation. (see attached)  However, in practice, there 
are issues.<br><br></div><div>Look at the main plot for zonal wind:<br>      <a href="http://www.ncl.ucar.edu/Applications/cylineq.shtml" target="_blank">http://www.ncl.ucar.edu/Applic<wbr>ations/cylineq.shtml</a><br><br></div><div>Say, your threshold value is 12.3 m/s.<br><br></div><div>At each longitude, there are one or more &#39;12.3&#39; values looking pole_to_pole.<br><br></div>Choose
 -8.0 .... at some longitudes there is no such value while at others, 
there are multiple values (closed contours). What to do? How to return 
reasonable values?<br><br></div><div>I am attaching a simple scrip and function that uses the <a href="http://uv300.nc" target="_blank">uv300.nc</a> file distributed with NCL.<br></div>You can play with this. Currently, it returns the locations of the 1st encountered threshold value. <br><br></div>If you are looking at (say) the northern hemisphere and there is one 5880gpm contour, it may work for you.<br><br></div>Good luck<br><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 9, 2016 at 10:57 PM, 陈婕 <span dir="ltr">&lt;<a href="mailto:chenj2014@lzu.edu.cn" target="_blank">chenj2014@lzu.edu.cn</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Dear Mr/Mrs,<br>
<br>
 I want to get locations of a threshold value. For example, I want to know the locations of 5880gpm contour line at 500hpa. Actually,I only can find the approximate values and their locations from the original grid data. Is there a function for interpolation or a method to get the locations of a threshold value?<br>
<br>
<br>
Best regards,<br>
Jie Chen<br>
______________________________<wbr>_________________<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</a><br>
</blockquote></div><br></div></div></div></div>