<div dir="ltr"><div class="gmail_default" style="font-size:small">Hi Dave,</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thanks for providing this. I will send it to the WRF folks to see if they might be able to create a Fortran version from it. We could then build it into NCL directly so it could be made available via wrf_user_getvar.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jan 23, 2015 at 1:36 PM, David Jones <span dir="ltr"><<a href="mailto:jonesd647@yahoo.ca" target="_blank">jonesd647@yahoo.ca</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"><div dir="ltr"><span>Hi All,</span></div><div dir="ltr"><br><span></span></div><div dir="ltr"><span>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 dir="ltr"><br><span></span></div><div dir="ltr"><span>Best,</span></div><div dir="ltr"><span>Dave. </span></div> <div><br></div><div style="display:block"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12px"> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:16px">------------------------------<br><div><br>Message: 9<br>Date: Fri, 23 Jan 2015 10:15:24 -0700<br>From: Dennis Shea <<a rel="nofollow" href="mailto:shea@ucar.edu" target="_blank">shea@ucar.edu</a>><br>Subject: Re: [ncl-talk] absolute vorticity (avo) stencil<br>To: Packard Chan <<a rel="nofollow" href="mailto:packard.chan@gmail.com" target="_blank">packard.chan@gmail.com</a>><br>Cc: "<a rel="nofollow" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>" <<a rel="nofollow" href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>><br>Message-ID:<br> <<a rel="nofollow" href="mailto:CAOF1d_6eSx48cbpxvSs40n1B6nqsC6c1E0M0nEmdSN32Gj8gTQ@mail.gmail.com" target="_blank">CAOF1d_6eSx48cbpxvSs40n1B6nqsC6c1E0M0nEmdSN32Gj8gTQ@mail.gmail.com</a>><br>Content-Type: text/plain; charset="utf-8"<div><div class="h5"><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" href="mailto:packard.chan@gmail.com" target="_blank">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" href="mailto:shea@ucar.edu" target="_blank">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" href="http://www.ncl.ucar.edu/Applications/ESMF.shtml" target="_blank">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" href="mailto:corey.potvin@noaa.gov" target="_blank">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" href="mailto:shea@ucar.edu" target="_blank">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 rel="nofollow" href="mailto:corey.potvin@noaa.gov" target="_blank">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: <a href="tel:%28405%29%20325-6674" value="+14053256674" target="_blank">(405) 325-6674</a><br>>>>>> Cell: <a href="tel:%28405%29%20206-0485" value="+14052060485" target="_blank">(405) 206-0485</a><br>>>>>><br>>>>>> _______________________________________________<br>>>>>> ncl-talk mailing list<br>>>>>> List instructions, subscriber options, unsubscribe:<br>>>>>> <a rel="nofollow" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">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: <a href="tel:%28405%29%20325-6674" value="+14053256674" target="_blank">(405) 325-6674</a><br>>>> Cell: <a href="tel:%28405%29%20206-0485" value="+14052060485" target="_blank">(405) 206-0485</a><br>>>><br>>><br>>><br>>> _______________________________________________<br>>> ncl-talk mailing list<br>>> List instructions, subscriber options, unsubscribe:<br>>> <a rel="nofollow" href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>>><br>>><br>><br></div></div>-------------- next part --------------<br>An HTML attachment was scrubbed...<br>URL: <a rel="nofollow" href="http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150123/da2fffa6/attachment-0001.html" target="_blank">http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150123/da2fffa6/attachment-0001.html </a><br></div> </div> </div> </div> </div></div></div></div></div></div><br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>