<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi there,
<div class=""><br class="">
</div>
<div class="">As the function uv2dv_cfd can give the divergence field for a regional data at fixed grid, I am wondering if there is a function similar to dv2uvf (this function only works for global grids) that can generate the u, and v component for the divergence
 derived from uv2dv_cfd. There seem to be a lot built-in function similar to dv2uvf (e.g. <a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/dv2uvF_Wrap.shtml" style="margin: 0px; padding: 0px; text-decoration: none; color: rgb(133, 45, 133); font-family: verdana, sans-serif; font-size: 13.333333015441895px;" class=""><strong style="margin: 0px; padding: 0px;" class="">dv2uvF_Wrap</strong></a><span style="caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: verdana, sans-serif; font-size: 13.333333015441895px; background-color: rgb(255, 255, 255);" class="">, </span><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/dv2uvG-1.shtml" style="margin: 0px; padding: 0px; text-decoration: none; color: rgb(133, 45, 133); font-family: verdana, sans-serif; font-size: 13.333333015441895px;" class=""><strong style="margin: 0px; padding: 0px;" class="">dv2uvG</strong></a><span style="caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: verdana, sans-serif; font-size: 13.333333015441895px; background-color: rgb(255, 255, 255);" class="">, </span><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/dv2uvg.shtml" style="margin: 0px; padding: 0px; text-decoration: none; color: rgb(133, 45, 133); font-family: verdana, sans-serif; font-size: 13.333333015441895px;" class=""><strong style="margin: 0px; padding: 0px;" class="">dv2uvg</strong></a><span style="caret-color: rgb(51, 51, 51); color: rgb(51, 51, 51); font-family: verdana, sans-serif; font-size: 13.333333015441895px; background-color: rgb(255, 255, 255);" class="">, </span><strong style="margin: 0px; padding: 0px; text-decoration: none; font-family: verdana, sans-serif; font-size: 13.333333015441895px;" class=""><a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/uv2dvF-1.shtml" style="color: rgb(133, 45, 133); margin: 0px; padding: 0px; text-decoration: none; font-family: verdana, sans-serif; font-size: 13.333333015441895px;" class="">uv2dvF</a></strong>)
 but none of them would suite a regional grid such as WRF outputs. If I am not missing anything, would anybody be able to share an efficient way to calculate the u and v component of a 2-D divergence field at pressure level by NCL?</div>
<div class=""><br class="">
</div>
<div class="">Thanks for any help in advance.</div>
<div class=""><br class="">
</div>
<div class="">Best,</div>
<div class="">Lisi</div>
<div class=""><br class="">
</div>
</body>
</html>