Hello,<br>
<br>
I used "set gxout fwrite" to show 2D (t,z) average wind vectors as
below. But the vertical wind field changes abruptly that is not a
right vertical wind field. I have a feeling that the wind vectors were arranged horizontal, then
vertically -- similar to the sequence of an array in Fortran. But even I
switched z and t, the pattern is the same style. Could someone tell me how to show show 2D (t,z) average wind vectors?<br><br> Thanks much,<br><br> Yi-Chih<br>
<br>
###############<br>
"reinit"
<div class="im">"open Morakot_d01.ctl"<br>"set fwrite -sq aveuv.dat"<br><br></div>
tt=17<br>
while(tt<=57)<br>
"set t "tt""<br>
zz=8<br>
while(zz<=18)
<div class="im"><br>"Set z "zz""<br><br>"Set x 65 91"<br>"Set y 37 65"<br></div>
*"set x 1"<br>
*"Set y 1"
<div class="im"><br>"set gxout print"<br>"d aave(u,x=65,x=91,y=37,y=65)"<br>
line = sublin(result,2)<br></div>
u_value=subwrd(line,1)
<div class="im"><br>say result<br>"d aave(v,x=65,x=91,y=37,y=65)"<br>line = sublin(result,2)<br></div>
v_value=subwrd(line,1)
<div class="im"><br><br>"set gxout fwrite"<br>"set x 1"<br>
"set y 1"<br>"define uu="u_value""<br>"define vv="v_value""<br>"d uu"<br></div>
"d vv"
<div class="im"><br><br>"undefine uu"<br>"undefine vv"<br>zz=zz+1<br>
endwhile<br></div>
tt=tt+2
<div class="im"><br>endwhile<br><br>"disable fwrite"<br>"close 1"<br><br>"reinit"<br>"open aveuv.ctl"<br>"set x 1"<br>"Set y 1"<br></div>
"set z 1 11"<br>
"set t 1 21"<br>
"d uu;vv"