<div dir="ltr"><div>NCL does not have an explicit function to calculate vorticity and/or divergence for curvilinear grids.</div><div><br></div><div>Rick suggested:    <b><a href="https://www.ncl.ucar.edu/Applications/regrid.shtml" target="_blank">https://www.ncl.ucar.edu/Applications/regrid.shtml</a></b></div><div>Specifically: <a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/rcm2rgrid_Wrap.shtml"><b>rcm2rgrid_Wrap </b></a></div><div>Then, if you want to place the values on the original WRF grid: <a href="https://www.ncl.ucar.edu/Document/Functions/Contributed/rgrid2rcm_Wrap.shtml"><b>rgrid2rcm_Wrap</b></a><br></div><div><br></div><div>=====================<br></div><div>More complicated but more efficient:<br></div><div><br></div><div><a href="https://www.ncl.ucar.edu/Applications/ESMF.shtml"><b>https://www.ncl.ucar.edu/Applications/ESMF.shtml</b></a></div><div><b>ESMF_regrid_29.ncl / ESMF_wgts_29.ncl</b></div><div>also<b><br></b></div><div><b><b>ESMF_regrid_37.ncl </b></b></div><div><b><br></b></div><div>Good Luck</div><div>D<b><br></b></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 4, 2019 at 8:58 PM Rick Brownrigg via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I'm not expert at this, so I can only offer limited help. There are a number of options available to regrid your WRF curvilinear grid into a rectilinear grid as required by <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/uv2vr_cfd.shtml" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer" target="_blank">uv2vr_cfd</a>; check out:<br></div><div><br></div><div>    <a href="https://www.ncl.ucar.edu/Applications/regrid.shtml" target="_blank">https://www.ncl.ucar.edu/Applications/regrid.shtml</a></div><div><br></div><div>Perhaps someone can provide more specific help</div><div><br></div><div>Rick</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Sep 4, 2019 at 4:59 PM Hiram Abif Meza Landero via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div class="gmail_quote" dir="auto"><div dir="ltr" class="gmail_attr"><span style="font-family:sans-serif;font-size:12.8px">Hello</span></div><div dir="auto"><div style="font-family:sans-serif;font-size:12.8px;width:328px;margin:16px 0px" dir="auto"><div dir="ltr"><div>I would like to use the function <a href="https://www.ncl.ucar.edu/Document/Functions/Built-in/uv2vr_cfd.shtml" style="text-decoration-line:none;color:rgb(66,133,244)" rel="noreferrer noreferrer" target="_blank">uv2vr_cfd</a> to calculate relative vorticity from wrf output but it needs one dimensional arrays for latitude and longitude. Since the latitude and longitude output from wrf is multidimensional, I need them on one dimensional array. Is there a function in ncl to convert matrix to vector or something like that?</div><div><br></div><div>Thank you</div><div dir="auto">My best regards</div><div dir="auto">Hiram<br></div></div></div></div>
</div></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>
_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a></blockquote></div>