<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'> <div>Dear NCL users,</div><div>I am bit confused with reshape function in NCL.</div><div><ul><li><span style="font-size: 12pt;">I have an hourly wrf output for 30days with 720 time stamp. and </span><span style="font-size: 12pt;">I want to get hourly average of 30 days 2m Temperature data as each </span><span style="font-size: 12pt;">0, 1, 2, .....................23 hour average values. (or 24 values in total)</span></li><li><span style="font-size: 12pt;"> </span><span style="font-size: 12pt;">I have array as (ntime, nlat, nlon) number of time, latitude and longitude points for variable T</span></li><li><span style="font-size: 12pt;">then i defined ndays = ntime/2</span></li><li><span style="font-size: 12pt;">and reshape as </span></li><li><span style="font-size: 12pt;">Re3d = reshape(T, (/ndays,24, nlat, nlon/)) ; i am confused with putting 24 at first array or second </span></li><li><span style="font-size: 12pt;">then averaged as</span></li><li><span style="font-size: 12pt;">Re3d_avg = dim_avg_n_Wrap(Re3d,0)</span></li><li><br></li><li><span style="font-size: 12pt;">would it correctly produce the hourly average for each hour or i am doing it in wrong way. I would be grateful if somebody could kindly suggest me the right way.</span></li></ul></div><div><br><i>Regards<br>Ramchandra Karki</i><div><br></div></div>                                            </div></body>
</html>