Dear users:<br><br>I&#39;m trying to open a grib2 file with Grads but I&#39;ve found problems in my way. <br><br>I have been able to create a descriptor file with the function <a href="http://g2ctl.pl">g2ctl.pl</a> using the following sentence:<br>

<br>perl <a href="http://g2ctl.pl">g2ctl.pl</a> -0 pgbhnl.gdas.2006020112.grb2 &gt; pgbhnl.gdas.2006020112_grib2.ctl<br><br>but, when I&#39;ve tried to create the index file with the function gribmap, I have obtained the following error message:<br>

<br>gribmap -i pgbhnl.gdas.2006020112_grib2.ctl <br>Open Error:  Data file type invalid<br>  --&gt; The invalid description file record is: <br>  --&gt; dtype grb2<br>  The data file was not opened. <br><br>This is part of the descriptor file obtained:<br>

<br>dset ^pgbhnl.gdas.2006020112.grb2<br>index ^pgbhnl.gdas.2006020112.grb2.idx<br>undef 9.999E+20<br>title pgbhnl.gdas.2006020112.grb2<br>* produced by g2ctl v0.0.8.2<br>* command line options: -0 pgbhnl.gdas.2006020112.grb2<br>

* griddef=1:0:(720 x 361):grid_template=0:winds(N/S): lat-lon grid:(720 x 361) units 1e-06 input WE:NS output WE:SN res 48 lat 90.000000 to -90.000000 by 0.500000 lon 0.000000 to 359.500000 by 0.500000 #points=259920:winds(N/S)<br>

<br>dtype grib2<br>ydef 361 linear -90.000000 0.5<br>xdef 720 linear 0.000000 0.500000<br>tdef 1 linear 12Z01feb2006 1mo<br>* PROFILE hPa<br>zdef 37 levels 100000 97500 95000 92500 90000 87500 85000 82500 80000 77500 75000 70000 65000 60000 55000 50000 45000 40000 35000 30000 25000 22500 20000 17500 15000 12500 10000 7000 5000 3000 2000 1000 700 500 300 200 100<br>

options pascals<br>vars 95<br>no4LFTXsfc   0,1,0   0,7,193 ** surface Best (4 layer) Lifted Index [K]<br>no5WAVA500mb   0,100,50000   0,3,197 ** 500 mb 5-Wave Geopotential Height Anomaly [gpm]<br>no5WAVH500mb   0,100,50000   0,3,193 ** 500 mb 5-Wave Geopotential Height [gpm]<br>

<br>Does someone know what is the problem? What is wrong in my procedure? and how can I create the index file?<br><br>Thank you very much in advance for your help.<br><br>Sincerely:<br>Javier Peña<br clear="all"><br>-- <br>

Javier Peña Álvarez<br>Energías Renovables<br><a href="mailto:javier.p@ereda.com">javier.p@ereda.com</a><br>EREDA<br><br>Tel:  +34 91 5014755<br>Fax: +34 91 5014756<br>Pº. Marqués de Monistrol 7<br>28011 MADRID<br><a href="http://www.ereda.com">www.ereda.com</a><br>