<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;background-color:#FFFFFF;font-family:Calibri,Arial,Helvetica,sans-serif;">
<p><span style="font-size: 12pt;">Hi NCL users,</span><br>
</p>
<p></p>
<p class="p2"><span class="s1">I want to read many MODIS files. For each satellite pixel, find the nearest WRF grid based on lat, lon information (used function ind here to reduce the calculation time), then assign the MODIS data to this WRF grid. </span></p>
<p class="p1"><span class="s1"></span><br>
</p>
<p class="p2"><span class="s1">I found that using loop in NCL to calculate each satellite pixel’s distance to the WRF grid is very slow. </span></p>
<p class="p1"><span class="s1"></span><br>
</p>
<p class="p2"><span class="s1">One way I’m thinking to solve this is to use FORTRAN in the NCL to do the loop part. </span></p>
<p class="p1"><span class="s1"></span><br>
</p>
<p class="p2"><span class="s1">I also found NCL has a function bin_sum to calculate binned sums and counts on a rectilinear grid which is very fast. Is there a similar function in NCL like bin_sum but for curvilinear grid?</span></p>
<p class="p1"><span class="s1"></span><br>
</p>
<p class="p2"><span class="s1">Thanks very much,</span></p>
<p class="p2"><span class="s1">Yun</span></p>
<br>
<p></p>
<div id="Signature">
<div id="divtagdefaultwrapper" style="font-size:12pt; color:#000000; background-color:#FFFFFF; font-family:Calibri,Arial,Helvetica,sans-serif">
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif; font-size:; margin:0">
<div><br>
</div>
</div>
</div>
</div>
</div>
</body>
</html>