<div dir="ltr">Hi,<div>I am trying to read multiple wrfout files. I am reading okay..no problem with the code extracting variables. </div><div>Problem comes, when each file has multiple times in it and then I don't know how to extract the time series of variables . </div><div>Below is the code, please let me know how to modify code to read many times within each file.</div><div><div>************************</div><div>fs1 = systemfunc("ls ../WRFV3/run/wrfout_d01*")<br> nfs1= dimsizes(fs1)<br> f1 = addfiles(fs1+".nc","r")<br>  ntimes1 =  dimsizes(f1)         ; number of times in the file(s)<br><br>loc1 = wrf_user_ij_to_ll(f1, 593., 546., True)<br> print("lon/lat locations are: " + loc)<br>uu1      = new((/ntimes1/),float)<br>vv1      = new((/ntimes1/),float)<br>psfc1      = new((/ntimes1/),float)<br>i1=0<br>do while (i1.le.ntimes1-1)<br>uu1(i1)    = f1[i1]->U(:,0,546,593)   ; (time, lat,lon)    ; (2,64,128)<br>vv1(i1)    = f1[i1]->V(:,0,546,593)        ; V10(:,29.301,-94.797)<br>psfc1(i1)  = f1[i1]->PSFC(:,546,593)<br>i1 = i1 + 1<br>end do<br>   model_wspd1 = sqrt(uu1^2+vv1^2) ;wind_speed(uu,vv)<br>   model_wdir1 = wind_direction(uu1,vv1,0)<br>   model_psfc1 = psfc1/100.<br></div><div>************************</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Dr. Anil Kumar<div>Environmental Modeling Center/NCEP/NWS/NOAA<br><div cols="72">College Park, MD, USA  </div></div><div><br></div><div><br></div></div></div></div></div></div></div></div></div></div>