<div dir="ltr"><div>Dear All,</div><div>I have a variable say X (time, level, lat, lon). I need to compute average over level dimension, which includes 18 layers. But I just want to average over layers from 0 to 7. So how can I modify :<br></div><div><span style="background-color:rgb(180,167,214)">X _ave = dim_avg_n( X, 1) </span><br></div><div><br></div><div>to get the desired result, please.</div><div>Many thanks in advance,</div><div>Best wishes,<br></div><div><br></div><div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">S.Rahimi<br><br></div></div></div>