<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Chen,<div class=""><br class=""></div><div class="">The source code for the NCL function “runave” can be found in the files “<a href="https://github.com/NCAR/ncl/blob/master/ni/src/lib/nfpfort/runave_dp.f" class="">ni/src/lib/nfpfort/runave_dp.f</a>” and “<a href="https://github.com/NCAR/ncl/blob/master/ni/src/lib/nfp/wrunaveW.c#L372" class="">ni/src/lib/nfp/wrunave_W.c</a>”.</div><div class=""><br class=""></div><div class="">The actual computational algorithm is written in Fortran and exists in runave_dp.f as “DRUNAVE” and “DRUNAVX77”. The “runave_W” function in wrunave_W.c contains logic for handling input variables from NCL and looping across dimensions as appropriate.</div><div class=""><br class=""></div><div class="">I hope this helps,</div><div class="">Kevin<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 5, 2018, at 1:58 AM, Chen <<a href="mailto:kuroshio@163.com" class="">kuroshio@163.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div style="line-height: 1.7; font-size: 14px; font-family: Arial;" class=""><div class="">Hello friends,</div><div class=""> I am wondering where can I find the source code of function "runave".</div><div class=""> Your help means a lot for me. Thank you.</div><div class="">Best</div><div class="">Chen</div></div><br class=""><br class=""><span title="neteasefooter" class=""><div class=""> <br class="webkit-block-placeholder"></div></span>_______________________________________________<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>