<div dir="ltr">Hi,<div><br></div><div>When working concurrently with multiple grib2 files I&#39;m encountering a performance issue. I initially thought this was caused by the grib2 cache but now wonder if it is related to the metafile buffer. </div><div><br></div><div>The sample script below helps to explain. Scenario is....</div><div><br></div><div>1) Open all files</div><div>2) Outer loop where latitude and longitude for plot are set</div><div>3) Inner loop through all open files plotting 2 variables from each one for the latitude and longitude currently set</div><div>4) Write output to an image file</div><div>5) Iterate</div><div><br></div><div>If I reduce the filenumber count to be lower than 13 OR only plot 1 variable the image files are generated quickly, approx 1.5 per second. </div><div><br></div><div>If I leave the filenumber count as it is and plot the 2 variables the plot plot is very slow taking approx 50 seconds to be written to the file system.</div><div> </div><div> <br></div><div><div><br></div><div>*Open files 1 to 22</div><div>&#39;open file00.ctl&#39;</div><div>&#39;open file01.ctl&#39;</div><div>&#39;open filexx.ctl&#39;</div><div><br></div><div><br></div><div>while(b&lt;60)</div><div><br></div><div>filenumber=1</div><div>while (filenumber&lt;23)</div><div>&#39;set dfile &#39; %filenumber</div><div>&#39;d var1&#39;</div><div>&#39;d var2&#39;</div><div>filenumber=filenumber+1</div><div>endwhile</div><div><br></div><div>op = &#39; C:\&#39;%imagefilename% &#39;.png png x800 y600&#39;</div><div>&#39;gxprint &#39; %op &#39; white&#39;</div><div><br></div><div>B=B+1</div><div>endwhile </div><div><br></div><div><br></div><div>When running the .gs I&#39;ve tried using the -m NNN option to increase the metafile buffer size (e.g. to 3<span style="color:rgb(0,0,0);font-family:Arial,Helvetica,sans-serif;font-size:13.3333330154419px;background-color:rgb(197,213,255)">000000</span>) but this doesn&#39;t seem to make any difference. </div><div><br></div><div>Any ideas??</div><div><br></div><div>Thanks</div><div><br></div><div>Brian</div><div><br></div><div><br></div><div><br></div></div></div>