2011/9/16 Hyacinth Nnamchi <span dir="ltr">&lt;<a href="mailto:hyacinth.1@hotmail.com">hyacinth.1@hotmail.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">




<div><div dir="ltr">
Jeff,<br><br>I seems my question wasn&#39;t well framed, and so you dealt with the typo. I have attached two Figs showing what the calculations below will give and what exactly I&#39;ll like to do.<br><br></div></div></blockquote>
<div><br></div><div>From the attached plot it appears that you want to plot the divergent component of the mass flux, as given by the Helmholtz decomposition:</div><div><br></div><div>           <a href="http://en.wikipedia.org/wiki/Helmholtz_decomposition">http://en.wikipedia.org/wiki/Helmholtz_decomposition</a></div>
<div><br></div><div>The first step is to compute the velocity potential</div><div><br></div><div>   ga-&gt; chi = fish_chi(zon,mer)</div><div><br></div><div>(As Roger mentions, make sure to average in the vertical first if this is what you want.) Next, the divergent component of the mass flux is related to the gradient of chi; see this for more information:</div>
<div><br></div><div> <a href="http://opengrads.org/doc/udxt/fish/fish.html#calculating_the_divergent_wind" style="color: rgb(119, 0, 0); font-family: monospace; white-space: pre; font-size: 14px; ">Calculating the Divergent Wind</a></div>
<div><span class="Apple-style-span" style="font-family: &#39;bitstream vera sans&#39;, verdana, sans-serf; font-size: 14px; "><pre>Notice that you will need an opengrads build in order to use the fish extension; more info here:</pre>
</span><span class="Apple-style-span" style="font-family: &#39;bitstream vera sans&#39;, verdana, sans-serf; font-size: 14px; "><pre>    <a href="http://opengrads.org/wiki/index.php?title=Installing_the_OpenGrADS_Bundle">http://opengrads.org/wiki/index.php?title=Installing_the_OpenGrADS_Bundle</a></pre>
</span><span class="Apple-style-span" style="font-family: &#39;bitstream vera sans&#39;, verdana, sans-serf; font-size: 14px; "><pre> Good luck,</pre></span><span class="Apple-style-span" style="font-family: &#39;bitstream vera sans&#39;, verdana, sans-serf; font-size: 14px; "><pre style="color: rgb(119, 0, 0); ">
   Arlindo</pre></span><span class="Apple-style-span" style="font-family: &#39;bitstream vera sans&#39;, verdana, sans-serf; font-size: 14px; "><pre style="color: rgb(119, 0, 0); "><br></pre></span><span class="Apple-style-span" style="font-family: &#39;bitstream vera sans&#39;, verdana, sans-serf; font-size: 14px; "><pre style="color: rgb(119, 0, 0); ">
<br></pre></span></div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><div dir="ltr">Thanks,<br><br>Hyacinth<br><br><br>&gt; Date: Thu, 15 Sep 2011 17:34:50 -0500&gt;<br>
From: Jeffrey Duda &lt;<a href="mailto:jdduda@iastate.edu" target="_blank">jdduda@iastate.edu</a>&gt;&gt;<br> Subject: Re: [gradsusr] Moisture flux convergence/divergence<br>&gt; To: GrADS Users Forum &lt;<a href="mailto:gradsusr@gradsusr.org" target="_blank">gradsusr@gradsusr.org</a>&gt;<br>
<div>&gt; Message-ID:<br>&gt;         &lt;CAP9LQ-VNkxcu-+ey_QkZU7f4MHf+VwJDvav=<a href="mailto:Dci3ns%2Bx%2BpjG8Q@mail.gmail.com" target="_blank">Dci3ns+x+pjG8Q@mail.gmail.com</a>&gt;<br>&gt; Content-Type: text/plain; charset=&quot;iso-8859-1&quot;<div class="im">
<br>&gt; <br>&gt; Set the graphics output to vector (&#39;set gxout vector&#39;), then &#39;d zon;mer&#39;<br>&gt; (note the semicolon instead of a comma).<br>&gt; <br>&gt; Jeff Duda<br>&gt; <br>&gt; 2011/9/15 Hyacinth Nnamchi &lt;<a href="mailto:hyacinth.1@hotmail.com" target="_blank">hyacinth.1@hotmail.com</a>&gt;<br>
&gt; <br>&gt; &gt;  Hello,<br>&gt; &gt;<br>&gt; &gt; This is not directly about GrADS but since most of address similar!
 <br>&gt; &gt; problems, I guess someone on this forum will be able to answer my question.<br>&gt; &gt;<br>&gt; &gt; I understand that to calculate moisture transport, given zonal, meridional<br>&gt; &gt; winds and specific humidity, can simply do:<br>
&gt; &gt;<br>&gt; &gt; &#39;define zon=uwnd.1*shum.3&#39;<br>&gt; &gt; &#39;define mer=vwnd.2*shum.3&#39;<br>&gt; &gt; &#39;d zon,mer&#39;<br>&gt; &gt;<br>&gt; &gt; But, I want to plot vectors indicating field of net moisture flux (all arrows converging/diverging) instead of just transport.<br>
&gt; &gt;<br>&gt; &gt; Thanks for any ideas.<br>&gt; &gt;<br>&gt; &gt; Hyacinth<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; __<br></div></div>                                               </div></div>
<br>_______________________________________________<br>
gradsusr mailing list<br>
<a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>
<a href="http://gradsusr.org/mailman/listinfo/gradsusr" target="_blank">http://gradsusr.org/mailman/listinfo/gradsusr</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Arlindo da Silva<br><a href="mailto:dasilva@alum.mit.edu">dasilva@alum.mit.edu</a><br>