<div dir="ltr"><div class="gmail_default" style="font-size:small">I'm going through old emails and noticed I hadn't responded to this one.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">I think what you're doing is okay. You generally want to set vcMapDirection to False if you are not generating vectors over a map.</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 Tue, Jul 18, 2017 at 9:23 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 style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial"><span class=""><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"><i>res@vcMapDirection = False</i>, everthing seems OK. </span></div><div><span style="font-size:16px"><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="zoom:1"></div><div id="m_3085632842109307232divNeteaseMailCard"></div><br>At 2017-07-10 21:05:51, "Mary Haley" <<a href="mailto:haley@ucar.edu" target="_blank">haley@ucar.edu</a>> wrote:<br> </span><div><div class="h5"><blockquote id="m_3085632842109307232isReplyContent" 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_<wbr>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" target="_blank">http://www.ncl.ucar.edu/<wbr>Document/Functions/<wbr>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/<wbr>nclscripts/csm/contributed.<wbr>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>:),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>_________________<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/mailma<wbr>n/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>
</blockquote></div></div></div><br><br><span title="neteasefooter"><p> </p></span></div><br><br><span title="neteasefooter"><p> </p></span></blockquote></div><br></div>