<div dir="ltr"><div dir="ltr"><div dir="ltr"><div>In NCL, this kind of operation falls under regridding, not interpolation.  I recommend one of the area averaging functions, such as area_conserve_remap, area_hi2lores, or ESMF_regrid.</div><div><br></div><div>None of those functions use the grid box calculation that you specified.  If you want to perform that exact calculation over all grid boxes falling in a 1/8 degree box, you will need to write your own NCL code.  I suggest that you use the dim_avg_n function inside a double loop over all output points on the 1/8 degree grid.  "There is more than one way to do this."</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Oct 1, 2020 at 8:58 AM Xueyan Zhang via ncl-talk <<a href="mailto:ncl-talk@mailman.ucar.edu">ncl-talk@mailman.ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hello NCL,<div><br></div><div>I want to interpolate precipitation data from 1/24 degree to 1/8 degree. The way I wanna do it is to: calculate the average of all grid boxes falling in a 1/8 degree box? Is there any function in NCL?</div><div><br></div><div>Thanks!</div><div><br></div><div>Xueyan</div></div></blockquote></div></div></div></div>