<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div><span style="font-size: 16px;">Yes, I meant &nbsp;to plot&nbsp;UGRD and WGRD in <i>gsn_csm_vector</i> call.</span></div><div><br></div><div><span style="font-size: 16px;">The reason why I&nbsp;multiplied the return value of omega_to_w by 10 is the W is so small and I wanted to make W equaled to U so the wind vectors looked normally.</span></div><div><span style="font-size: 16px;"><br></span></div><div><span style="font-size: 16px;">However, when I try to set </span><span style="font-size: 16px;" class=""><i>res@vcMapDirection = False</i>, everthing seems OK. &nbsp;</span></div><div><span style="font-size: 16px;" class=""><br></span></div><div><span style="font-size: 16px;"><b>Are there any mistakes I had done in those attemps? Please tell me, thanks a lot.</b></span></div><br><br><br><br><div style="position:relative;zoom:1"></div><div id="divNeteaseMailCard"></div><br>At 2017-07-10 21:05:51, "Mary Haley" &lt;<a href="mailto:haley@ucar.edu">haley@ucar.edu</a>&gt; wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><div dir="ltr"><div class="gmail_default" style="font-size:small">Did you mean to plot UGRD and WGRD in your gsn_csm_vector call? If so, the&nbsp;issue may be either with your data or "omega_to_w".</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Why are you multiplying the return value of omega_to_w by 10?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default"><font face="monospace, monospace">&nbsp; &nbsp; WGRD = omega_to_w(VVEL_P0,pres,TMP_P0(10:30,:,:))*10</font></div><div><br></div></div><div class="gmail_default" style="font-size:small">Please read the documentation for omega_to_w closely to make sure you are inputting the correct parameters with the correct expected units:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default"><a href="http://www.ncl.ucar.edu/Document/Functions/Contributed/omega_to_w.shtml">http://www.ncl.ucar.edu/Document/Functions/Contributed/omega_to_w.shtml<br></a></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you look the code for "omega_to_w", which is in $NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl, the calculation is simply:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><div class="gmail_default"><font face="monospace, monospace">&nbsp; &nbsp;RGAS = 287.058 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; J/(kg-K) =&gt; m2/(s2 K) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</font><span style="font-family:monospace,monospace">GRAV = 9.80665 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;; m/s2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;rho &nbsp;= p/(RGAS*t) &nbsp; &nbsp; &nbsp; &nbsp; ; density =&gt; kg/m3 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;w &nbsp; &nbsp;= -omega/(rho*GRAV) &nbsp;; array operation &nbsp;</span></div><div class="gmail_default"><br></div><div class="gmail_default">If you continue to have problems, please back to ncl-talk.</div><div class="gmail_default"><br></div><div class="gmail_default">Thank you,</div><div class="gmail_default"><br></div><div class="gmail_default">--Mary</div><div class="gmail_default"><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 7, 2017 at 11:16 PM, Zhu CE <span dir="ltr">&lt;<a href="mailto:lovingzhuce@163.com" target="_blank">lovingzhuce@163.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div><span style="font-size:16px">Hi everyone,</span></div><div><br></div><div><span style="font-size:16px">I am trying to draw plots which overlay wind vectors on contour plots.</span></div><div><br></div><div><span style="font-size:16px">Here, the X-axis is Longtitude and Y-axis is Pressue(Height).</span></div><div><br></div><div><span style="font-size:16px">When I used<i> wplot1 = gsn_csm_vector(wks,UGRD(:,232,<wbr></wbr>:),WGRD(:,232,:),resV)</i> and <i>overlay(plot1,wplot1)</i> to draw plot, a wrong figure I have gotten, only U-wind was drawn and no W-wind was drawn.</span></div><div><br></div><div><span style="font-size:16px">What did I do wrong? Could you help me? Thanks a lot.</span></div><div><br></div><div><span style="font-size:16px">P.S. Attachments are NCL script and the wrong figure.</span></div><div><br></div><div><span style="font-size:16px">Zhu</span></div></div><br><br><span title="neteasefooter"><p>&nbsp;</p></span><br>______________________________<wbr></wbr>_________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">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/<wbr></wbr>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br><br><span title="neteasefooter"><p>&nbsp;</p></span></div><br><br><span title="neteasefooter"><p>&nbsp;</p></span>