<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Wenshan,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">You're right that the code that does the Delaunay mesh is "triangle.c", and the code that calls it is in CnTriMeshRenderer.c.  Look for places where you see:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">#ifdef BuildTRIANGLE</div><div class="gmail_default" style="font-size:small">. . .</div><div class="gmail_default" style="font-size:small">#endif</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">and this will show you the code that is calling the triangle code.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Note that the triangle.c, triangle.h files are from Jonathan Shewchuk of Berkeley, and you can find out more about the code at:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.cs.cmu.edu/~quake/triangle.html">http://www.cs.cmu.edu/~quake/triangle.html</a><br></div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div><div><div class="gmail_default" style="font-size:small"></div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 10, 2018 at 5:04 PM, Wenshan Wang <span dir="ltr"><<a href="mailto:wenshanw@uci.edu" target="_blank">wenshanw@uci.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 dir="ltr"><div>Hi Dennis,</div><div><br></div><div>Thank you for the reply!</div><div>I am so sorry for the delay. I was traveling.</div><div><br></div><div>What I tried to understand is the following description of contour1d_1.ncl on the webpage 'Contouring one-dimensional X, Y, Z (random) data' (<a href="https://www.ncl.ucar.edu/Applications/contour1d.shtml" target="_blank">https://www.ncl.ucar.edu/<wbr>Applications/contour1d.shtml</a>):<br></div><div><span style="color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:13.3333px;background-color:rgb(255,231,198)">"By default, NCL will generate smoothed contours (see first frame) in an area enclosed by a </span><a href="https://en.wikipedia.org/wiki/Convex_hull" style="margin:0px;padding:0px;text-decoration-line:none;color:rgb(133,45,133);font-family:verdana,sans-serif;font-size:13.3333px;background-color:rgb(255,231,198)" target="_blank">convex hull </a><span style="color:rgb(51,51,51);font-family:verdana,sans-serif;font-size:13.3333px;background-color:rgb(255,231,198)">of the data".</span><br></div><div dir="ltr"><br></div><div>Based on the links you included and a little digging into the NCL code, is it safe to say that:</div><div>1, the smoothing method is: cubic spline interpolation</div><div>2, the convex hulls are created using the Delaunay triangulation (the dual of Voronoi diagram) by calling 'triangle'?</div><div>But I didn't find the actual calling commands in NCL code. <br></div><span class=""><br clear="all"><div><div dir="ltr" class="m_-1411106188084697698gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><div>Best,<br></div>Wenshan<br>------------------------------<wbr>------------------------------<wbr>------------------<br></div>Post-doctoral Scholar</div><div>Zender Research Group</div>Department of Earth System Science<br></div>University of California, Irvine<br></div><div dir="ltr"><a href="https://sites.google.com/a/uci.edu/wenshanwang/" target="_blank">https://sites.google.com/a/<wbr>uci.edu/wenshanwang/</a><br></div></div></div></div></div></div></div></div></div><br></span></div></div><div class="HOEnZb"><div class="h5"><br><div class="gmail_quote"><div dir="ltr">On Sun, Sep 16, 2018 at 3:14 PM Dennis Shea <<a href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Without going into the code, a guess would be:</div><div><a href="http://ngwww.ucar.edu/supplements/conpack/#Intro2DSmoothing" target="_blank"><b>http://ngwww.ucar.edu/<wbr>supplements/conpack/#<wbr>Intro2DSmoothing</b></a><br></div><div dir="ltr"><a href="http://ngwww.ucar.edu/supplements/dashpack/" target="_blank"><b>http://ngwww.ucar.edu/<wbr>supplements/dashpack/</b></a></div><div>Correct:  it is not "simple 9-point smoothing"</div><div>====</div><div>Not sure what you mean by: "Triangulated irregular networks"</div><div><br></div><div><div><b><span class="m_-1411106188084697698m_-3008852629935622492gmail-st"> <a href="http://www.cs.cmu.edu/~quake/triangle.html" target="_blank">http://www.cs.cmu.edu/~quake/<wbr>triangle.</a><a href="http://www.cs.cmu.edu/~quake/triangle.html" target="_blank">html</a></span></b><a href="http://www.cs.cmu.edu/~quake/triangle.html" target="_blank"><br></a></div><br></div><div><br></div><div><b><a href="https://www.ncl.ucar.edu/Document/Graphics/contour_grids.shtml" target="_blank">https://www.ncl.ucar.edu/<wbr>Document/Graphics/contour_<wbr>grids.shtml</a><br></b></div><div><b><br></b></div><div><b><span class="m_-1411106188084697698m_-3008852629935622492gmail-st"> </span></b><a href="http://www.cs.cmu.edu/~quake/triangle.html" target="_blank"><br></a></div><div><br></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 12, 2018 at 4:16 PM, Wenshan Wang <span dir="ltr"><<a href="mailto:wenshanw@uci.edu" target="_blank">wenshanw@uci.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>Hi NCL-talk,</div><div><br></div><div>What is the spatial interpolation method used in this example contour1d_1.ncl?</div><div>Is it "Triangulated irregular networks"? </div><div>Where can I find a more detailed description?</div><div><br></div><div>Also, what is the smoothing method here?</div><div>seems not a simple 9-point smoothing.</div><div><br></div><div>Thank you!</div><br clear="all"><div><div dir="ltr" class="m_-1411106188084697698m_-3008852629935622492m_-150091697509888253gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><div>Best,<br></div>Wenshan<br>------------------------------<wbr>------------------------------<wbr>------------------<br></div>Post-doctoral Scholar</div><div>Zender Research Group</div>Department of Earth System Science<br></div>University of California, Irvine<br></div><div dir="ltr"><a href="https://sites.google.com/a/uci.edu/wenshanwang/" target="_blank">https://sites.google.com/a/<wbr>uci.edu/wenshanwang/</a><br></div></div></div></div></div></div></div></div></div></div>
<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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div>
</div></div><br>______________________________<wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>