<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif">Copying a similar response from a previous question on NCL talk. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif">google: hourly to daily ncl</div><div class="gmail_default" style="font-family:verdana,sans-serif">will give you many queries and responses along similar line. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif"> For a more specific answer, a more specific question is going to be needed. </div><div class="gmail_default" style="font-family:verdana,sans-serif"><p style="color:rgb(0,0,0);font-family:Times">let: x(time,lev,lat,lon) <br></p><p style="color:rgb(0,0,0);font-family:Times">         dimx = dimsizes(x) <br>         ntim = dimx(0) ; number of time steps <br>         klev = dimx(1) <br>         nlat = dimx(2) <br>         mlon = dimx(3) <br></p><p style="color:rgb(0,0,0);font-family:Times">         nday = ntim/24 <br></p><p style="color:rgb(0,0,0);font-family:Times">         xDay = x(::24,:,:,:) ; &#39;trick&#39; to allocate memory + retain meta data <br></p><p style="color:rgb(0,0,0);font-family:Times">         do nt=0,ntim-1,24 <br>            xday(nt/24,:,:,:) = dim_avg_n( x(nt:nt+23,:,:,:),0 )  ;</p><p style="color:rgb(0,0,0);font-family:Times">         end do <br>         xday_at_long_name = &quot;Daily Mean: &quot;+x_at_long_name <br></p><div><br></div><div>Alan. </div><p style="color:rgb(0,0,0);font-family:Times"></p><p style="color:rgb(0,0,0);font-family:Times"></p><p style="color:rgb(0,0,0);font-family:Times"></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 24, 2015 at 11:21 AM, Jesús Garcia Rosales <span dir="ltr">&lt;<a href="mailto:jesus21gr@gmail.com" target="_blank">jesus21gr@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div style="font-size:13px">Hi users</div><div style="font-size:13px"><br></div><div style="font-size:13px">The thing that I want to do is the next:</div><div style="font-size:13px"><br></div><div style="font-size:13px">I have many wrf files for february ( example: wrfout_2000_feb, wrfout_2001_feb,.... wrfout_2012_feb), and in each file has hourly data (example: to wrfout_2000_feb it has day 1: 00z, 01z, 02z,....day 28: 00z, 01z.....). And I have daily data from my stations, so I want to compare both each station with each wrf file in a time-serie during a february month, but the data from station is daily and the data from wrf is hourly. Can someone help me please?.</div><div style="font-size:13px"><br></div><div style="font-size:13px"><br></div><div style="font-size:13px"> Thanks for your time.<span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888"><div style="font-size:13px">Jesús</div></font></span></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a><br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" rel="noreferrer" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>