<div dir="ltr"><div><div>Hello all,<br></div>Greetings!<br><br></div>I want to write a variable in do loop. But it is writing the data only for the last level(200hpa), ie; data is getting over written for each level. How to save the u_plane data as array?<br><br> <br><div><div>;;***************Pressure levels **********<br> plevs = (/ 925., 850., 700., 600., 500., 300., 200./)   ; pressure levels to plot<br> nlevels         = dimsizes(plevs)     ; number of pressure levels<br><br>; writing data into netcdf format<br>    system(&quot;rm -f <a href="http://wrfout.nc" target="_blank">wrfout.nc</a>&quot;)<br>    fw = addfile(&quot;<a href="http://wrfout.nc" target="_blank">wrfout.nc</a>&quot;, &quot;c&quot;)<br><br><br clear="all"><div><div>; writing the dimensions time, level, lat, lon<br><br>;  fw-&gt;xlev = xlev<br>  fw-&gt;xlat = xlat<br>  fw-&gt;xlon = xlon<br><br> do it = 0,ntimes-1               ; TIME LOOP<br><br> do level = 0,nlevels-1                 ; LOOP OVER LEVELS<br>u    = wrf_user_getvar(a,&quot;U&quot;,it)<br><br>u_plane    = wrf_user_intrp3d(u,p,&quot;h&quot;,pressure,0.,False)<br><br>fw-&gt;u_plane = u_plane <br><br></div><div>end do ; level loop<br></div><div>end do ; time loop<br></div><div><br></div><div>Kindly help to resolve the issue.<br><br></div><div>Thank you,<br></div><div>With regards,<br>-- <br><div><div dir="ltr">Ancy Thomas,<br>Computational Earth Science Group / HPC application Group<br>CDAC<br>Pune<br><br></div></div>
</div></div></div></div></div>