<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I used to have a similar issue (may not be exactly the same). </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Dennis' approach greatly improved the efficiency of interpolation problem: <a href="http://mailman.ucar.edu/pipermail/ncl-talk/2018-April/011942.html" id="LPlnk730824">http://mailman.ucar.edu/pipermail/ncl-talk/2018-April/011942.html</a> </div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Cheers!</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Xiaoming</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> ncl-talk <ncl-talk-bounces@ucar.edu> on behalf of Michael Toy - NOAA Affiliate <michael.toy@noaa.gov><br>
<b>Sent:</b> Monday, March 25, 2019 5:19 PM<br>
<b>To:</b> Ncl-talk<br>
<b>Subject:</b> [ncl-talk] ESMF_regrid using too much memory</font>
<div> </div>
</div>
<div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">Hello,
<div class=""><br class="">
</div>
<div class="">I am trying to conservatively regrid from a 3km x 3km horizontal to grid to a 0.5deg x 0.5deg grid (both lat-lon grids).  The data is WRF model output.  The source (fine) grid dimensions are 2190 x 1330 grid points.  I’m looping over a number
 of times and vertical levels with masked data (I’m using the Opt@SrcGridMask attribute).  My script works fine for smaller domains, but with the computing resources I’m working on, I can’t get the large domain computed because the memory allocation is exceeded
 (20GB).  The largest array I have in my script is about 0.75GB in size (float).  It seems there’s a variable in the ESMF package that grows indefinitely, perhaps?</div>
<div class=""><br class="">
</div>
<div class="">I’m attaching my NCL script.  Please let me know if you have any questions.  Thank you.</div>
<div class=""><br class="">
</div>
<div class="">Best regards,</div>
<div class="">Mike</div>
<div class=""><br class="">
<div class="">
<div style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<br class="x_x_Apple-interchange-newline">
—————————</div>
<div class="" style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
Michael Toy</div>
<div class="" style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
Research Scientist, Model Development Branch</div>
<div class="" style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
NOAA Earth System Research Lab, GSD</div>
<div class="" style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
325 Broadway, Boulder, Colorado</div>
<div class="" style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<a href="mailto:Michael.Toy@noaa.gov" class="">Michael.Toy@noaa.gov</a></div>
<div class="" style="color:rgb(0,0,0); font-family:Helvetica; font-size:12px; font-style:normal; font-variant-caps:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
+1-303-497-4061</div>
</div>
<br class="">
</div>
<div class=""><br class="">
</div>
<div class=""></div>
</div>
<div class="" style="word-wrap:break-word; line-break:after-white-space">
<div class=""></div>
<div class=""><br class="">
</div>
<div class=""><br class="">
</div>
</div>
</div>
</body>
</html>