<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Qi,<div class=""><br class=""></div><div class="">I just created a new “development snapshot” build of NCL available via the “conda” package manager containing the dim_kde function. Please see our conda documentation for installation information, if needed:&nbsp;<a href="http://ncl.ucar.edu/Download/conda.shtml" class="">http://ncl.ucar.edu/Download/conda.shtml</a></div><div class=""><br class=""></div><div class="">In order to install the “ncl dev” version, you will need to run a different “conda create” command than what is shown in our documentation. Please use the following commands to install and activate an “ncl_dev” environment with conda:</div><div class=""><font face="Menlo" class="">conda&nbsp;create -n ncl_dev -c ncar -c conda-forge ncl=dev gsl</font></div><div class=""><font face="Menlo" class="">source activate ncl_dev</font></div><div class=""><br class=""></div><div class="">Note that the “<b class="">dim_kde</b>” function is currently called “<b class="">dim_kde_test</b>” and is not officially supported; we will revert the name change at some point in the future once the function is deemed stable.</div><div class=""><br class=""></div><div class="">Please let us know if you experience any unexpected behavior with this function.</div><div class=""><br class=""></div><div class="">Thanks,</div><div class="">Kevin</div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 27, 2017, at 4:18 PM, Mary Haley &lt;<a href="mailto:haley@ucar.edu" class="">haley@ucar.edu</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="gmail_default" style="font-size:small">Qi,</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">For the record, we do have a dim_kde already implemented in our internal development version, but we haven't had a chance to heavily test it.</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">We are going to revisit this tomorrow to see what state it's in. If you are interested, we can provide you with a test NCL to try.</div><div class="gmail_default" style="font-size:small"><br class=""></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Jul 26, 2017 at 11:32 AM, LI Qi <span dir="ltr" class="">&lt;<a href="mailto:liqi123sh@qq.com" target="_blank" class="">liqi123sh@qq.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">Dear Dennis,</div><div class=""><br class=""></div><div class="">Thank you for your reply!</div><div class="">Yesterday I just googled "ncl kernel density estimation" and that page popped up. At that time Im so happy to find NCL also has this function &nbsp;(means I don't need to learn R).</div><div class="">What's your said (hist_binwidth and invoking kde&nbsp;) is exactly what I want.</div><div class="">But if it's very bother to invoke the funciton or it's need much time and energy in the develepment, then just ignore me. I can learn R for the moment.</div><div class=""><br class=""></div><div class="">Best,</div><div class="">Qi</div><div class=""><div class=""><br class=""></div><div class=""><br class=""></div><div style="font-size:12px;font-family:Arial Narrow;padding:2px 0 2px 0" class="">------------------&nbsp;Original&nbsp;--<wbr class="">----------------</div><div style="font-size:12px;background:#efefef;padding:8px" class=""><div class=""><b class="">From: </b>&nbsp;"Dennis Shea";&lt;<a href="mailto:shea@ucar.edu" target="_blank" class="">shea@ucar.edu</a>&gt;;</div><div class=""><b class="">Date: </b>&nbsp;Thu, Jul 27, 2017 00:42 AM</div><div class=""><b class="">To: </b>&nbsp;"LI Qi"&lt;<a href="mailto:liqi123sh@qq.com" target="_blank" class="">liqi123sh@qq.com</a>&gt;; </div><div class=""><b class="">Cc: </b>&nbsp;"ncl-talk"&lt;<a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a>&gt;<wbr class="">; </div><div class=""><b class="">Subject: </b>&nbsp;Re: [ncl-talk] could i try dim_kde function before ncl 6.5 released</div></div><div class=""><div class="h5"><div class=""><br class=""></div><div dir="ltr" class=""><div class="">Placing the 6.5.0 KDE function documentation onto the publicly available NCL URL was a mistake on my part. <br class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_kde.shtml" target="_blank" class="">https://www.ncl.ucar.edu/Docum<wbr class="">ent/Functions/Built-in/dim_<wbr class="">kde.shtml</a><br class="">It was meant for NCL's internal draft documentation URL. I used<br class=""><br class=""></div><div class="">%&gt; unw dim_kde.xml<br class=""><br class=""></div><div class="">instead of<br class=""><br class=""></div><div class="">%&gt; unw -t dim_kde.xml<br class=""><br class="">----<br class=""></div><div class=""><br class=""></div><div class="">If you look at:<br class="">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <a href="http://www.ncl.ucar.edu/future_release.shtml" target="_blank" class="">http://www.ncl.ucar.edu/future<wbr class="">_release.shtml</a><br class=""></div><div class="">there is no mention of the 'dim_kde' function. Hence, 'dim_dke' is not yet in the development NCL 6.5.0. There is no time estimate of when it will be included.<br class=""><br class="">---<br class=""></div><div class="">An NCL script that invokes the KDE fortran subroutine via a shared object is available. It returns the PDF (ie: "smooth curve"). I can make this available. Let ncl-talk know if you want this. <br class=""><br class=""></div><div class="">There is also an as-yet undocumented NCL language 'hist_binwidth'&nbsp; that estimates optimal bin-widths using Silverman's rule-of-thumb for normal and quantile densities; and, uses the 'dim_kde' function. An NCL script that invokes the shared object is available for this also.<br class=""><br class=""></div><div class="">Regards<br class=""></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Tue, Jul 25, 2017 at 2:23 PM, LI Qi <span dir="ltr" class="">&lt;<a href="mailto:liqi123sh@qq.com" target="_blank" class="">liqi123sh@qq.com</a>&gt;</span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">Dear NCL,</div><div class=""><br class=""></div><div class="">Is there any way I can try the&nbsp;gaussian kernel density estimation (KDE) (<a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/dim_kde.shtml" target="_blank" class="">https://www.ncl.ucar.edu/Docu<wbr class="">ment/Functions/Built-in/dim_<wbr class="">kde.shtml</a>) before next version released?</div><div class="">I have sample histograms and would like a smooth curve overlaid.</div><div class=""><br class=""></div><div class="">Thanks and best regards,</div><div class="">Qi</div><br class="">______________________________<wbr class="">_________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" target="_blank" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/mailma<wbr class="">n/listinfo/ncl-talk</a><br class="">
<br class=""></blockquote></div><br class=""></div></div></div></div><br class="">______________________________<wbr class="">_________________<br class="">
ncl-talk mailing list<br class="">
<a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">
List instructions, subscriber options, unsubscribe:<br class="">
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank" class="">http://mailman.ucar.edu/<wbr class="">mailman/listinfo/ncl-talk</a><br class="">
<br class=""></blockquote></div><br class=""></div>
_______________________________________________<br class="">ncl-talk mailing list<br class=""><a href="mailto:ncl-talk@ucar.edu" class="">ncl-talk@ucar.edu</a><br class="">List instructions, subscriber options, unsubscribe:<br class="">http://mailman.ucar.edu/mailman/listinfo/ncl-talk<br class=""></div></blockquote></div><br class=""></div></body></html>