Yi-Chih,<br>The two things I would try are:<br>1) Instead of displaying the areal average using "d aave...", try defining the variable as the output of aave like this:<br>"define uave = aave(u, x=65, x=93, y=37, y=65)"<br>
"define vave = aave(v, x=65, x=93, y=37, y=65)"<br>"set gxout vector"<br>"d uave;vave"<br><br>2) If (1) doesn't work, use the <a href="http://www.iges.org/grads/gadoc/gradcomdsetdefval.html">set defval</a> command to individually set the value of the component fields by using the two aave commands, one for each component. That is, try something like:<br>
ii = 65<br>jj = 37<br>ii_max = 93<br>jj_max = 65<br>'d aave(u, x=65, x=93, y=37, y=65)'<br>u_value = subwrd(result,4)<br>'d aave(v, x=65, x=93, y=37, y=65)'<br>v_value = subwrd(result,4)<br>while (ii <= ii_max)<br>
while (jj <= jj_max)<br> 'set defval uave 'ii' 'jj' 'u_value<br> 'set defval vave 'ii' 'jj' v_value<br> jj = jj + 1<br> endwhile<br> ii = ii + 1<br>endwhile<br>
<br>'d uave;vave'<br><br>Jeff Duda<br><br><div class="gmail_quote">On Tue, Nov 8, 2011 at 10:50 AM, Yi-Chih Huang <span dir="ltr"><<a href="mailto:dscpln@gmail.com">dscpln@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br><br> I am trying to plot the average wind vector over a horizontal range. But I can't get an arrow, but only a value at most as below. Could anyone tell me the right commands to show the average wind vector over a horizontal range?<br>
<br>ga-> d aave(u, x=65, x=93, y=37, y=65);aave(v, x=65, x=93, y=37, y=65)<br>Result value = -3.55342<br>ga-> d amean(u, x=65, x=93, y=37, y=65);amean(v, x=65, x=93, y=37, y=65)<br>Result value = -3.56684<br>ga-> d ave(u, x=65, x=93, y=37, y=65);ave(v, x=65, x=93, y=37, y=65)<br>
Error from AVE: Invalid option flags<br>Operation Error: Error from ave function<br> Error ocurred at column 1<br>DISPLAY error: Invalid expression<br> Expression = ave(u,x=65,x=93,y=37,y=65)<br><br> Thanks much,<br>
<br> Yi-Chih<br>
<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"><br>-- <br>Jeff Duda<br>Iowa State University<br>Meteorology Graduate Student<br><a href="http://www.meteor.iastate.edu/%7Ejdduda" target="_blank">www.meteor.iastate.edu/~jdduda</a><br>