<meta http-equiv="content-type" content="text/html; charset=utf-8"><span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; "><span style="font-family: arial, sans-serif; font-size: 16px; line-height: 24px; "><span title="">Hello everyone.<br>
</span><span title="" style="background-color: rgb(230, 236, 249); color: rgb(0, 0, 0); ">I export the values of the WRF model </span><span title="">.<br></span><span title="">I wrote a few lines but does not work very well.</span></span><div>
<span style="font-family: arial, sans-serif; font-size: 16px; line-height: 24px; "><span title=""><br></span></span></div><div><span style="font-family: arial, sans-serif; font-size: 16px; line-height: 24px; "><span title=""><div>
'reinit'</div><div>'open /NMM/wrfems/runs/a/emsprd/grads/control.ctl'</div><div>'c'</div><div>'set lat 45.00'</div><div>'set lon 10.00'</div><div>'set grads off'</div><div>'set t 2'</div>
<div>a = t'.txt'</div><div>kt = 06</div><div>'d vvelprs(lev=700)'</div><div>linha = sublin(result,2)</div><div>vvel1 = subwrd(linha,4)</div><div>vvel2 = substr(vvel1,1,4)</div><div>if ( vvel2 = 0 ) ; vvel2 = 0.00 ; endif</div>
<div>write (a, 'VVEL', append) </div><div>write (a, '+'%kt%' '%vvel2, append)</div><div>'quit'</div><div><br></div></span></span></div><div><span style="font-family: arial, sans-serif; font-size: 16px; line-height: 24px; "><span title=""><br>
</span></span></div><div><span style="font-family: arial, sans-serif; font-size: 16px; line-height: 24px; "><span title=""><br></span><span title="">I write the value for each hour in a txt file.<br></span><span title="">I'm hoping for some suggestions</span></span></div>
</span>