<div>Dear ncl-talk,</div><div>There are 3 functions to c<span style="font-family: verdana, sans-serif; font-size: 13.3333px;">ompute the divergence. They are </span><a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/uv2dvF-1.shtml" style="margin: 0px; padding: 0px; text-decoration: none; color: rgb(133, 45, 133); font-family: verdana, sans-serif; font-size: 13.3333px;">uv2dvF</a>, <a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/uv2dvF-1.shtml" style="margin: 0px; padding: 0px; text-decoration: none; color: rgb(133, 45, 133); font-family: verdana, sans-serif; font-size: 13.3333px;">uv2dv</a>G,<a href="http://www.ncl.ucar.edu/Document/Functions/Built-in/uv2dv_cfd.shtml" style="margin: 0px; padding: 0px; text-decoration: none; color: rgb(133, 45, 133); font-family: verdana, sans-serif; background: rgb(205, 232, 251); font-size: 13.3333px;">uv2dv_cfd</a>.</div><div>I would like to know which function should I use to c<span style="font-family: verdana, sans-serif; font-size: 13.3333px;">ompute the divergence given WRF output file (eg. </span><font face="verdana, sans-serif"><span style="font-size: 13.3333px;">wrfout_d03_2016-08-11_00:00:00</span></font><span style="font-family: verdana, sans-serif; font-size: 13.3333px;">) because the number of dimensions of the lat/lon is 2 ?</span></div><div><span style="font-family: verdana, sans-serif; font-size: 13.3333px;">Then how to write the code? Thank you!</span></div><div><span style="font-family: verdana, sans-serif; font-size: 13.3333px;"><br></span></div><div><span style="font-family: verdana, sans-serif; font-size: 13.3333px;"><br></span></div><div><span style="font-family: verdana, sans-serif; font-size: 13.3333px;">                              </span><span style="white-space: pre-wrap; font-family: "lucida Grande", Verdana, "Microsoft YaHei"; background-color: rgb(255, 231, 198);">Many thanks in advance</span></div><div class="mailcontainer" id="qqmail_mailcontainer"><div id="mainmail" style="position: relative; z-index: 1; margin-bottom: 12px;"><div id="contentDiv" class="body" style="line-height: 1.7; position: relative; height: auto; padding: 15px 15px 10px; z-index: 1; zoom: 1;"><div id="qm_con_body"><div id="mailContentContainer" class="qmbox qm_con_body_content qqmail_webmail_only" style="padding: 0px; height: auto; min-height: 100px; word-wrap: break-word; font-family: "lucida Grande", Verdana, "Microsoft YaHei";"><div class="mailcontainer" id="qqmail_mailcontainer"><div id="mainmail" style="position: relative; z-index: 1; margin-bottom: 12px;"><div id="contentDiv" class="body" style="line-height: 1.7; position: relative; height: auto; padding: 15px 15px 10px; z-index: 1; zoom: 1;"><div id="qm_con_body"><div id="mailContentContainer" class="qmbox qm_con_body_content qqmail_webmail_only" style="padding: 0px; height: auto; min-height: 100px; word-wrap: break-word;"><font face="verdana, sans-serif" style="line-height: 47.6px;"><span style="font-size: 13.3333px; line-height: 16px; background-color: rgb(255, 231, 198);"><div class="mailcontainer" id="qqmail_mailcontainer"><div id="mainmail" style="position: relative; z-index: 1; margin-bottom: 12px;"><div id="contentDiv" class="body" style="line-height: 1.7; position: relative; font-size: 14px; height: auto; padding: 15px 15px 10px; z-index: 1; zoom: 1;"><div id="qm_con_body"><div id="mailContentContainer" class="qmbox qm_con_body_content qqmail_webmail_only" style="padding: 0px; height: auto; min-height: 100px; word-wrap: break-word; font-family: "lucida Grande", Verdana, "Microsoft YaHei";"><div class="mailcontainer" id="qqmail_mailcontainer"><div id="mainmail" style="position: relative; z-index: 1; margin-bottom: 12px;"><div id="contentDiv" class="body" style="line-height: 1.7; position: relative; height: auto; padding: 15px 15px 10px; z-index: 1; zoom: 1;"><div id="qm_con_body"><div id="mailContentContainer" class="qmbox qm_con_body_content qqmail_webmail_only" style="padding: 0px; height: auto; min-height: 100px; word-wrap: break-word;"><div class="mailcontainer" id="qqmail_mailcontainer" style="background-color: rgb(255, 255, 255); line-height: 23.8px;"><div id="mainmail" style="position: relative; z-index: 1; margin-bottom: 12px;"><div id="contentDiv" class="body" style="line-height: 1.7; position: relative; height: auto; padding: 15px 15px 10px; z-index: 1; zoom: 1;"><div id="qm_con_body"><div id="mailContentContainer" class="qmbox qm_con_body_content qqmail_webmail_only" style="padding: 0px; height: auto; min-height: 100px; word-wrap: break-word;"><div class="mailcontainer" id="qqmail_mailcontainer" style="line-height: 23.8px;"><div id="mainmail" style="position: relative; z-index: 1; margin-bottom: 12px;"><div id="contentDiv" class="body" style="line-height: 1.7; position: relative; height: auto; padding: 15px 15px 10px; z-index: 1; zoom: 1;"><div id="qm_con_body"><div id="mailContentContainer" class="qmbox qm_con_body_content qqmail_webmail_only" style="padding: 0px; height: auto; min-height: 100px; word-wrap: break-word;"><blockquote cite="mid:57d8b589.46ac6b0a.67e93.4266SMTPIN_ADDED_MISSING@mx.google.com" type="cite" style="line-height: 23.8px;"><div class="WordSection1"><pre style="line-height: 23.8px;"><span lang="EN-US">Regards<o:p></o:p></span></pre><pre style="line-height: 23.8px;"><span lang="EN-US">Yan<o:p></o:p></span></pre><pre style="line-height: 23.8px;"><span lang="EN-US">Shanghai Institute of Meteorology,China.</span></pre></div></blockquote></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></span></font></div></div></div></div></div></div></div></div></div></div><div><span style="font-family: verdana, sans-serif; font-size: 13.3333px;"><br></span></div><div><span style="font-family: verdana, sans-serif; font-size: 13.3333px;"><br></span></div><div><span style="font-family: verdana, sans-serif; font-size: 13.3333px;">             </span></div>