<div dir="ltr"><div><div><div>Hi all,<br><br></div>I&#39;ve encountered a memory issue when opening grib files in a loop using NCL&#39;s &quot;addfile&quot; function. Memory usage increases over time, even when I delete the file. I&#39;ve copied a sample script below to demonstrate this. Is this normal behavior for the &quot;addfile&quot; function? And if so, does anyone know of a way to avoid this issue? I&#39;m using NCL v6.4, binaries from: ncl_ncarg-6.4.0-RHEL6.4_64bit_nodap_gnu447.tar.gz<br></div><div><br></div>Thanks,<br></div>Andy<br><div><div><br>---------------------------------------------------------<br>gribfile= &quot;/data2/gfs/2017/20170710/gfs.20170710t12z.pgrb2f120.grib2&quot;<br><br>do j = 0, 1000000<br>    do i = 0, 1000000<br><br>a = addfile(gribfile, &quot;r&quot;)<br><br>delete(a)<br><br>  end do<br>end do<br></div></div></div>