<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi, Jeff --<div>GRIB2 records are cached in case you want to reread data from the same grid more than once -- having grib records in the cache saves you the time of having to re-do the I/O and the uncompression. However, the cache can get big, and if you are pushing the memory limits of the your machine, you can clear the cache with the 'flush' command if you are sure you won't need any of the previously-read grids again. It is part of the 'reinit' command, and I just put it in there as a separate command in case it became necessary, but I don't think it will fix your slow-down problem. If you can provide a script that is as simple as possible but still illustrates the slow down, I will take a look.&nbsp;</div><div>--Jennifer</div><div><br></div><div><br></div><div><br><div><div>On Jan 17, 2013, at 5:16 PM, Jeff Duda wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">What is the purpose of the command flush?&nbsp; I see from the documentation that it clears the GRIB2 cache.&nbsp; I think I understand what that basically means, but I wonder if it has implications in something I'm doing.<br><br>
I'm running a series of complicated Grads scripts that read GRIB2 data and make a lot of plots.&nbsp; For some of my plots I am using the set defval command.&nbsp; One thing I've noticed while using this command is that the more times I run it in a loop of a Grads script, the longer it seems to take to run with each iteration.&nbsp; I know that sounds non-specific, so I can provide script code if anyone wants it, but I'm just feeling around here to see if the flush command may enable my scripts to run faster.<br>
<br>Jeff Duda<br clear="all"><br>-- <br>Jeff Duda<br>Graduate research assistant<br>University of Oklahoma School of Meteorology<br>Center for Analysis and Prediction of Storms<br>
_______________________________________________<br>gradsusr mailing list<br><a href="mailto:gradsusr@gradsusr.org">gradsusr@gradsusr.org</a><br>http://gradsusr.org/mailman/listinfo/gradsusr<br></blockquote></div><br><div apple-content-edited="true">
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div>--</div><div>Jennifer M. Adams</div><div>IGES/COLA</div><div>4041 Powder Mill Road, Suite 302</div><div>Calverton, MD 20705</div><div><a href="mailto:jma@cola.iges.org">jma@cola.iges.org</a></div><div><br class="khtml-block-placeholder"></div><br class="Apple-interchange-newline"></span></span></span>
</div>
<br></div></body></html>