<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>If your data are considered to be a continuous distribution, then compute the probability density function with NCL's pdfx function.  Then maxind() gives the position of the largest bin (i.e. highest density), which contains the mode.  You may need to adjust the number of bins to get the desired precision.</div><div><br></div><div>See NCL examples pdf_1 and pdf_2 to get the general idea of PDF's.  Also refer to this Wikipedia page on mode:</div><div><a href="https://en.wikipedia.org/wiki/Mode_(statistics)">https://en.wikipedia.org/wiki/Mode_(statistics)</a></div><div><br></div><div>Discrete distributions (counts, etc.) must be handled a little differently.</div><div dir="ltr"><br></div><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 3, 2019 at 11:55 AM Lesley Smith - NOAA Affiliate via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Greetings NCL folks!<div>Is there a way to compute the mode (most frequent value) of</div><div>data using NCL?<br>I'm not seeing anything...</div><div>Thanks so much!</div><div>Cheers,</div><div>-Lesley</div></div></blockquote></div></div></div></div>