<div style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><div><span style="font-size: 16px;">Yes, I meant to plot 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 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. </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" <haley@ucar.edu> 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 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"> 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"> RGAS = 287.058 ; J/(kg-K) => m2/(s2 K) </font><span style="font-family:monospace,monospace">GRAV = 9.80665 ; m/s2 rho = p/(RGAS*t) ; density => kg/m3 w = -omega/(rho*GRAV) ; array operation </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"><<a href="mailto:lovingzhuce@163.com" target="_blank">lovingzhuce@163.com</a>></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> </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> </p></span>