<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px"><div id="yiv0445214439"><div id="yui_3_16_0_1_1422044458203_13838" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px;"><div id="yiv0445214439"><div id="yiv0445214439yui_3_16_0_1_1422044458203_10555" style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px;"><div dir="ltr" id="yiv0445214439yui_3_16_0_1_1422044458203_7186"><span id="yiv0445214439yui_3_16_0_1_1422044458203_10867">Hi All,</span></div><div id="yiv0445214439yui_3_16_0_1_1422044458203_7215" dir="ltr"><br><span></span></div><div id="yiv0445214439yui_3_16_0_1_1422044458203_7214" dir="ltr"><span id="yiv0445214439yui_3_16_0_1_1422044458203_7213">attached is an NCL script I made previously to calculate WRF Divergence. It's based on the WRF vorticity function's fortran script, that D and P refer to. <br></span></div><div id="yiv0445214439yui_3_16_0_1_1422044458203_7217" dir="ltr"><br><span id="yiv0445214439yui_3_16_0_1_1422044458203_7213"></span></div><div id="yiv0445214439yui_3_16_0_1_1422044458203_7218" dir="ltr"><span id="yiv0445214439yui_3_16_0_1_1422044458203_7213">Best,</span></div><div id="yiv0445214439yui_3_16_0_1_1422044458203_7219" dir="ltr"><span id="yiv0445214439yui_3_16_0_1_1422044458203_7213">Dave. </span></div> <div id="yiv0445214439yui_3_16_0_1_1422044458203_7212" class="yiv0445214439qtdSeparateBR"><br></div><div id="yiv0445214439yui_3_16_0_1_1422044458203_7202" style="display:block;" class="yiv0445214439yahoo_quoted"> <div id="yiv0445214439yui_3_16_0_1_1422044458203_7201" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12px;"> <div id="yiv0445214439yui_3_16_0_1_1422044458203_7200" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;">------------------------------<br><div id="yiv0445214439yui_3_16_0_1_1422044458203_7199" class="yiv0445214439y_msg_container"><br>Message: 9<br>Date: Fri, 23 Jan 2015 10:15:24 -0700<br>From: Dennis Shea <<a id="yui_3_16_0_1_1422044458203_14121" rel="nofollow" ymailto="mailto:shea@ucar.edu" target="_blank" href="mailto:shea@ucar.edu">shea@ucar.edu</a>><br>Subject: Re: [ncl-talk] absolute vorticity (avo) stencil<br>To: Packard Chan <<a rel="nofollow" id="yiv0445214439yui_3_16_0_1_1422044458203_10566" ymailto="mailto:packard.chan@gmail.com" target="_blank" href="mailto:packard.chan@gmail.com">packard.chan@gmail.com</a>><br>Cc: "<a rel="nofollow" id="yiv0445214439yui_3_16_0_1_1422044458203_10567" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>" <<a id="yui_3_16_0_1_1422044458203_14153" rel="nofollow" ymailto="mailto:ncl-talk@ucar.edu" target="_blank" href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>><br>Message-ID:<br> <<a rel="nofollow" id="yiv0445214439yui_3_16_0_1_1422044458203_10568" ymailto="mailto:CAOF1d_6eSx48cbpxvSs40n1B6nqsC6c1E0M0nEmdSN32Gj8gTQ@mail.gmail.com" target="_blank" href="mailto:CAOF1d_6eSx48cbpxvSs40n1B6nqsC6c1E0M0nEmdSN32Gj8gTQ@mail.gmail.com">CAOF1d_6eSx48cbpxvSs40n1B6nqsC6c1E0M0nEmdSN32Gj8gTQ@mail.gmail.com</a>><br>Content-Type: text/plain; charset="utf-8"<br><br>The WRF vorticity fortran code could possible be modified to compute<br>divergence.<br><br>On Fri, Jan 23, 2015 at 9:49 AM, Packard Chan <<a rel="nofollow" id="yiv0445214439yui_3_16_0_1_1422044458203_11312" ymailto="mailto:packard.chan@gmail.com" target="_blank" href="mailto:packard.chan@gmail.com">packard.chan@gmail.com</a>><br>wrote:<br><br>> Hi Corey,<br>><br>> If you are using WRF, you might also want to try the following.<br>><br>> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"<br>> load "$NCARG_ROOT/lib/ncarg/nclscripts/wrf/WRFUserARW.ncl"<br>> ...<br>><br>> avo = wrf_user_getvar(filehandle, "avo", time)<br>><br>> The subroutine "DCOMPUTEABSVORT" will be eventually called by this function.<br>> Attached is the source code that gives the implementation of the subroutine, which is available in the source code of NCL.<br>> ncl_ncarg-6.2.1/ni/src/lib/nfpfort/wrf_pvo.f<br>><br>> Good luck.<br>><br>> Packard<br>><br>><br>> Packard Chan<br>> Year 4 undergraduate<br>> Major in Atmospheric Sciences<br>> School of Physics, Peking University<br>> Mobile: (86)188-1050-8009<br>><br>> On Fri, Jan 23, 2015 at 4:28 AM, Dennis Shea <<a rel="nofollow" ymailto="mailto:shea@ucar.edu" target="_blank" href="mailto:shea@ucar.edu">shea@ucar.edu</a>> wrote:<br>><br>>> NCL does not have a function for this. (WRF => deivergence<br>>><br>>> I have asked several people associated with WRF for some fortran or C<br>>> code we could implemet from within NCL. The answer is "none is available".<br>>><br>>> See<br>>><br>>> <a rel="nofollow" target="_blank" href="http://www.ncl.ucar.edu/Applications/ESMF.shtml">http://www.ncl.ucar.edu/Applications/ESMF.shtml</a><br>>> See Example 29<br>>><br>>> Maybe this would work for you.<br>>><br>>> D<br>>><br>>> On Thu, Jan 22, 2015 at 7:37 AM, Corey Potvin - NOAA Affiliate <<br>>> <a rel="nofollow" id="yiv0445214439yui_3_16_0_1_1422044458203_7343" ymailto="mailto:corey.potvin@noaa.gov" target="_blank" href="mailto:corey.potvin@noaa.gov">corey.potvin@noaa.gov</a>> wrote:<br>>><br>>>> Hi Dennis,<br>>>><br>>>> It's Arakawa-C, non-idealized WRF.<br>>>><br>>>> Corey<br>>>><br>>>> On Thu, Jan 22, 2015 at 8:18 AM, Dennis Shea <<a rel="nofollow" id="yiv0445214439yui_3_16_0_1_1422044458203_7210" ymailto="mailto:shea@ucar.edu" target="_blank" href="mailto:shea@ucar.edu">shea@ucar.edu</a>> wrote:<br>>>><br>>>>> Off line.<br>>>>><br>>>>> What type of grid do you have?<br>>>>><br>>>>> D<br>>>>><br>>>>> On Thu, Jan 22, 2015 at 6:23 AM, Corey Potvin - NOAA Affiliate <<br>>>>> <a id="yui_3_16_0_1_1422044458203_14144" rel="nofollow" ymailto="mailto:corey.potvin@noaa.gov" target="_blank" href="mailto:corey.potvin@noaa.gov">corey.potvin@noaa.gov</a>> wrote:<br>>>>><br>>>>>> Hello,<br>>>>>><br>>>>>> Could someone please tell me what (u,v) stencil is used to compute<br>>>>>> absolute vorticity, or direct me to the relevant script?<br>>>>>><br>>>>>> Thanks!<br>>>>>><br>>>>>> Corey<br>>>>>><br>>>>>> --<br>>>>>> ******************<br>>>>>> Corey Potvin, Ph.D.<br>>>>>> Research Scientist, Cooperative Institute for Mesoscale<br>>>>>> Meteorological Studies and<br>>>>>> NOAA/National Severe Storms Lab<br>>>>>> Adjunct Assistant Professor, University of Oklahoma<br>>>>>> National Weather Center<br>>>>>> Norman, Oklahoma<br>>>>>> Office: (405) 325-6674<br>>>>>> Cell: (405) 206-0485<br>>>>>><br>>>>>> _______________________________________________<br>>>>>> ncl-talk mailing list<br>>>>>> List instructions, subscriber options, unsubscribe:<br>>>>>> <a rel="nofollow" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>>>>>><br>>>>>><br>>>>><br>>>><br>>>><br>>>> --<br>>>> ******************<br>>>> Corey Potvin, Ph.D.<br>>>> Research Scientist, Cooperative Institute for Mesoscale Meteorological<br>>>> Studies and<br>>>> NOAA/National Severe Storms Lab<br>>>> Adjunct Assistant Professor, University of Oklahoma<br>>>> National Weather Center<br>>>> Norman, Oklahoma<br>>>> Office: (405) 325-6674<br>>>> Cell: (405) 206-0485<br>>>><br>>><br>>><br>>> _______________________________________________<br>>> ncl-talk mailing list<br>>> List instructions, subscriber options, unsubscribe:<br>>> <a id="yui_3_16_0_1_1422044458203_14391" rel="nofollow" target="_blank" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>>><br>>><br>><br>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a rel="nofollow" id="yiv0445214439yui_3_16_0_1_1422044458203_7211" target="_blank" href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150123/da2fffa6/attachment-0001.html">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150123/da2fffa6/attachment-0001.html </a><br></div> </div> </div> </div> </div></div></div></div></div></body></html>