<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 &quot;omega_to_w&quot;.</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 &quot;omega_to_w&quot;, 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) =&gt; m2/(s2 K)                    </font><span style="font-family:monospace,monospace">GRAV = 9.80665            ; m/s2                                    </span><span style="font-family:monospace,monospace">rho  = p/(RGAS*t)         ; density =&gt; kg/m3                        </span><span style="font-family:monospace,monospace">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">&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>:),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">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>mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>