<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 10pt; color: #000000'>Not sure if this is of use, but I beleive if you dump your gribs to binary (using wgrib2) before hand, and then run your scripts againt the binary files, it will be even faster (than grib1).&nbsp; Of course, it might take a few minutes to do the conversion to binary.&nbsp;<BR><BR>
<DIV><FONT size=2>Thanks,<BR>Mark</FONT></DIV><BR><BR>----- Original Message -----<BR>From: "JPB" &lt;info@a-conseil.com&gt;<BR>To: "GrADS Users Forum" &lt;gradsusr@gradsusr.org&gt;<BR>Sent: Monday, May 24, 2010 11:59:33 PM GMT -08:00 US/Canada Pacific<BR>Subject: Re: [gradsusr] Grads computation speed<BR><BR>Hello, <BR><BR>grib1 is faster because it does not need decompression process compared to <BR>grib2 <BR><BR>regards, <BR><BR>JPB <BR><BR>Jonas Kaufmann writes: <BR><BR>&gt; Hello, <BR>&gt; <BR>&gt; which one should be faster then, grib1 or grib2? Does the projection<BR>&gt; of the file have an influence on the computation speed? <BR>&gt; <BR>&gt; Best regards,<BR>&gt; Jonas Kaufmann <BR>&gt; <BR>&gt; On Fri, May 21, 2010 at 15:20, JPB &lt;info@a-conseil.com&gt; wrote:<BR>&gt;&gt; Hello, <BR>&gt;&gt;<BR>&gt;&gt; there is a big difference in computation time between grib1 and grib2<BR>&gt;&gt; when using grads. Perhaps you have to look at the grib file types... <BR>&gt;&gt;<BR>&gt;&gt; regards,<BR>&gt;&gt; JPB <BR>&gt;&gt;<BR>&gt;&gt; Le 21 mai 10 à 15:16, Jonas Kaufmann a écrit : <BR>&gt;&gt;<BR>&gt;&gt;&gt; Hello Michael, <BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; I tried on two machines with the same results. One is running Grads<BR>&gt;&gt;&gt; Version 2.0.a1.oga.1, the other one is OpenGrads Version 2.0.a7.oga.3.<BR>&gt;&gt;&gt; In both cases using the new version of my model was significantly<BR>&gt;&gt;&gt; slower than the old one. <BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; The old model used ARWpost as WRF postprocessor, the new one uses<BR>&gt;&gt;&gt; wrfpost. Both outputs are only customized in terms of available fields<BR>&gt;&gt;&gt; in the Grib file, all other options should be the default ones. <BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; Thank you for your help! <BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; Best regards,<BR>&gt;&gt;&gt; Jonas Kaufmann <BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; On Fri, May 21, 2010 at 15:09, Michael Fiorino &lt;michael.fiorino@noaa.gov<BR>&gt;&gt;&gt; &gt; wrote:<BR>&gt;&gt;&gt;&gt; Jonas, you need to tell us the version of grads... &nbsp;so the old data<BR>&gt;&gt;&gt;&gt; is<BR>&gt;&gt;&gt;&gt; binary and the new data grib? ciao mike <BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt; On 5/21/10 11:42 AM, Jonas Kaufmann wrote:<BR>&gt;&gt;&gt;&gt;&gt; Hello, <BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; I just ran into a problem regarding Grads computation speed. I have<BR>&gt;&gt;&gt;&gt;&gt; set up a WRF model over Europe and extract surface parameters for<BR>&gt;&gt;&gt;&gt;&gt; about 4-5000 points in the model for 72 timesteps. Now I tried<BR>&gt;&gt;&gt;&gt;&gt; another<BR>&gt;&gt;&gt;&gt;&gt; WRF version which produces different output files, and the<BR>&gt;&gt;&gt;&gt;&gt; computation<BR>&gt;&gt;&gt;&gt;&gt; speed for my Grads tasks for the new model is much much slower than<BR>&gt;&gt;&gt;&gt;&gt; before. You can find the first lines of my control files below. <BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; Using my old model, I could run my complete Grads tasks in about 90<BR>&gt;&gt;&gt;&gt;&gt; minutes. Using the new setup, this takes forever to complete (had to<BR>&gt;&gt;&gt;&gt;&gt; skip this as it took too long, think it should be around 180 minutes<BR>&gt;&gt;&gt;&gt;&gt; or so), of course on the same machine. The main difference must be<BR>&gt;&gt;&gt;&gt;&gt; in<BR>&gt;&gt;&gt;&gt;&gt; the Gribfiles I am using. <BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; Can anyone explain why this might be happening? Which Gribfile<BR>&gt;&gt;&gt;&gt;&gt; settings (version, projection etc.) are the best usable ones for<BR>&gt;&gt;&gt;&gt;&gt; Grads? And finally: how can I improve computation speed for my new<BR>&gt;&gt;&gt;&gt;&gt; model? <BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; Thank you for your answer! <BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; Best regards,<BR>&gt;&gt;&gt;&gt;&gt; Jonas Kaufmann <BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; Old model:<BR>&gt;&gt;&gt;&gt;&gt; options &nbsp;byteswapped<BR>&gt;&gt;&gt;&gt;&gt; pdef &nbsp;161 146 lcc &nbsp;47.300 &nbsp; &nbsp;9.800 &nbsp; 81.000 &nbsp; 73.500 &nbsp;47.30000<BR>&gt;&gt;&gt;&gt;&gt; 47.30000 &nbsp; &nbsp;9.80000 &nbsp;21000.000 &nbsp;21000.000<BR>&gt;&gt;&gt;&gt;&gt; xdef &nbsp;626 linear &nbsp;-19.84533 &nbsp; 0.09459461<BR>&gt;&gt;&gt;&gt;&gt; ydef &nbsp;324 linear &nbsp; 31.13766 &nbsp; 0.09459461<BR>&gt;&gt;&gt;&gt;&gt; zdef &nbsp; 27 linear 1 1<BR>&gt;&gt;&gt;&gt;&gt; tdef &nbsp; 88 linear 21Z26MAY2009 &nbsp; &nbsp; &nbsp;60MN<BR>&gt;&gt;&gt;&gt;&gt; VARS &nbsp; 14 <BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt; New model:<BR>&gt;&gt;&gt;&gt;&gt; dtype grib 255<BR>&gt;&gt;&gt;&gt;&gt; pdef 265 211 lccr 31.202000 -10.532000 1 1 47.515000 47.515000<BR>&gt;&gt;&gt;&gt;&gt; 10.025000 14684 14768<BR>&gt;&gt;&gt;&gt;&gt; xdef 265 linear -10.532000 0.156066529170106<BR>&gt;&gt;&gt;&gt;&gt; ydef 211 linear 31.202000 0.134254545454545<BR>&gt;&gt;&gt;&gt;&gt; tdef 1 linear 00Z24may2010 1mo<BR>&gt;&gt;&gt;&gt;&gt; zdef 1 linear 1 1<BR>&gt;&gt;&gt;&gt;&gt; vars 16<BR>&gt;&gt;&gt;&gt;&gt; _______________________________________________<BR>&gt;&gt;&gt;&gt;&gt; gradsusr mailing list<BR>&gt;&gt;&gt;&gt;&gt; gradsusr@gradsusr.org<BR>&gt;&gt;&gt;&gt;&gt; http://gradsusr.org/mailman/listinfo/gradsusr <BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt; _______________________________________________<BR>&gt;&gt;&gt; gradsusr mailing list<BR>&gt;&gt;&gt; gradsusr@gradsusr.org<BR>&gt;&gt;&gt; http://gradsusr.org/mailman/listinfo/gradsusr <BR>&gt;&gt;&gt;<BR>&gt;&gt; <BR>&gt;&gt;<BR>&gt;&gt; _______________________________________________<BR>&gt;&gt; gradsusr mailing list<BR>&gt;&gt; gradsusr@gradsusr.org<BR>&gt;&gt; http://gradsusr.org/mailman/listinfo/gradsusr <BR>&gt;&gt;<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; gradsusr mailing list<BR>&gt; gradsusr@gradsusr.org<BR>&gt; http://gradsusr.org/mailman/listinfo/gradsusr<BR><BR>_______________________________________________<BR>gradsusr mailing list<BR>gradsusr@gradsusr.org<BR>http://gradsusr.org/mailman/listinfo/gradsusr<BR></div></body></html>