Pues no lo entiendo. Parece que hay ficheros medio-correctos en los cuales el comando grib_ls o la aplicacion ejemplo &#39;iterator&#39; funcionan:<br><br>De ese fichero se reconecen algunas partes, supongo que por eso el programa iterator si muestra datos por pantalla:<br>
<br><font size="1"><span style="font-family:courier new,monospace">$ grib_ls ../../../00/20120219000000_sfc_fc06</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">../../../00/20120219000000_sfc_fc06</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">edition      centre       typeOfLevel  level        dataDate     stepRange    shortName    packingType  gridType     </span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">1            lemm         heightAboveGround  2            20120219     6            2t           grid_second_order_SPD1  rotated_ll  </span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">        *** unreadable message ***</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">        *** unreadable message ***</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">        *** unreadable message ***</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">        *** unreadable message ***</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">1 of 5 grib messages in ../../../00/20120219000000_sfc_fc06</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">1 of 5 total grib messages in 1 files</span></font><br>
<br>En otro casos el comando grib_ls no reconoce ningun mensaje valido y el &#39;iterator&#39; tampoco devuelve ningun dato.<br><font size="1"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">$ grib_ls ../../../00/20120219000000_sfc_fc09</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">../../../00/20120219000000_sfc_fc09</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">        *** unreadable message ***</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">        *** unreadable message ***</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">        *** unreadable message ***</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">        *** unreadable message ***</span><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">        *** unreadable message ***</span><br style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">0 of 5 grib messages in ../../../00/20120219000000_sfc_fc09</span><br style="font-family:courier new,monospace"><br style="font-family:courier new,monospace"><span style="font-family:courier new,monospace">0 of 5 total grib messages in 1 files</span></font><br>
<br><br>Alguien puede aportar mas luz ??<br><br><br><div class="gmail_quote">2012/2/19 Antonio Santiago <span dir="ltr">&lt;<a href="mailto:asantiagop@gmail.com">asantiagop@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Gracias Roger !!! Voy a probarlo.<br>(Adjunto la respusta a la lista de <a href="mailto:spanish@lists.osgeo.org" target="_blank">spanish@lists.osgeo.org</a>, que inicialmente tambien habia puesta la pregunta ahi).<br><br>
Es curioso porque compile tambien las grib_tools, que funcionan con las grib_api, y son incapaces de leer los datos.<br>
<br>Via linea de comandos/aplicacion creo que lo que probado casi todo. Ahora solo me falta via API con el ejemplo que tu me pones y en Java con las <a href="https://www.unidata.ucar.edu/software/decoders/" target="_blank">https://www.unidata.ucar.edu/software/decoders/</a>.<br>

<br>Saludos.<div class="HOEnZb"><div class="h5"><br><br><br><div class="gmail_quote">2012/2/18 Roger Veciana i Rovira <span dir="ltr">&lt;<a href="mailto:rveciana@gmail.com" target="_blank">rveciana@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Ostres, estic suspès de comprensió lectora... és veritat que ho havies dit.<br> <br>M&#39;he baixat un dels fitxers, el 20120218120000_sfc_fc06, i fent servir l&#39;exemple que ve amb el paquet grib_api de la següent manera:<br>


<br>grib_api-1.9.9/examples/C/iterator ~/20120218120000_s_fc06<br><br>em treu tota la llista de valors, amb la latitud i longitud, de manera que sembla que va (semblen la temperatura):<br><br>...<br>- 199208 - lat=5.700000 lon=7.000000 value=278.271240<br>


- 199209 - lat=5.700000 lon=7.050000 value=278.896240<br>- 199210 - lat=5.700000 lon=7.100000 value=279.052490<br>- 199211 - lat=5.700000 lon=7.150000 value=278.614990<br>- 199212 - lat=5.700000 lon=7.200000 value=277.771240<br>


- 199213 - lat=5.700000 lon=7.250000 value=277.271240<br>- 199214 - lat=5.700000 lon=7.300000 value=277.396240<br>...<br><br>El que no em compila bé és la llibreria amb python, que simplificaria una mica tot plegat (però tampoc no ho he provat massa) .<br>


<br>Ja en parlarem.<br><br>Roger<br><br><div class="gmail_quote">El 18 de febrer de 2012 20:08, Antonio Santiago <span dir="ltr">&lt;<a href="mailto:asantiagop@gmail.com" target="_blank">asantiagop@gmail.com</a>&gt;</span> ha escrit:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hola,<br>gracias por las respuestas.<br><br>Francisco: yo si consegui leer bien los BUFR de radar utilizando la libreria que indican.<br>


<br>Roger: Lo he probado todo incluyendo muchas de las librerias que indcan en la documentacion, entre ellas las grib-api (compiladas en ubuntu sin problemas :p ), zygrib, wgrib, ugrib, qgis, pero se resisten.<br>
<br>Me he bajado la documentacion sobre codigos de GRIB y en principio los codigos de las variables que usan son los &quot;estandars&quot; del formato GRIB1.<br><br>Si nadie me da una respuesta lo siguiente sera escribir un email al Sr. AEMET preguntando. A ver si me responden.<br>



<br>Saludos y gracias.<br><br><div class="gmail_quote">2012/2/18  <span dir="ltr">&lt;<a href="mailto:francisco.gomariz@gmail.com" target="_blank">francisco.gomariz@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<p>Se me olvidaba, yo lo hago para radar que no se si es el mismo formato</p>
<div class="gmail_quote">El 18/02/2012 19:53,  &lt;<a href="mailto:francisco.gomariz@gmail.com" target="_blank">francisco.gomariz@gmail.com</a>&gt; escribió:<div><div><br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<p>La verdad es que es una buena pregunta. Con las gdal no vas a poder (al menos yo no pude). Yo lo que hice es decodificarlos con el programa para ello de bufr (tienes el enlace en el archivo txt que viene con los datos) y una vez hecho (se convierten a binario raw) los importé con GRASS (en realidad con las gdal compiladas para este formato que es lo que utiliza GRASS). </p>






<p>Un saludo</p>
<div class="gmail_quote">El 18/02/2012 16:13, &quot;Antonio Santiago&quot; &lt;<a href="mailto:asantiagop@gmail.com" target="_blank">asantiagop@gmail.com</a>&gt; escribió:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





Hola,<br>estoy intentando leer los datos de los modelos numericos de AEMET: <a href="ftp://ftpdatos.aemet.es/modelos_numericos/hirlam005_peninsula/" target="_blank">ftp://ftpdatos.aemet.es/modelos_numericos/hirlam005_peninsula/</a><br>





<br>
Segun indican (<a href="ftp://ftpdatos.aemet.es/modelos_numericos/hirlam005_peninsula/LEEME_DATOS.txt" target="_blank">ftp://ftpdatos.aemet.es/modelos_numericos/hirlam005_peninsula/LEEME_DATOS.txt</a>) el formato de los ficheros es GRIB-1. He intentado leerlos con GDAL, grib-api, wgrid, y algunos otros programas pero todos ellos me dan error.<br>






<br>Alguien es capaz de leer esos ficheros.<br><br>Gracias.<br>
<br>_______________________________________________<br>
Spanish mailing list<br>
<a href="http://lists.osgeo.org/mailman/listinfo/spanish" target="_blank">http://lists.osgeo.org/mailman/listinfo/spanish</a><br>
<a href="http://es.osgeo.org" target="_blank">http://es.osgeo.org</a><br>
<a href="http://twitter.com/osgeoes" target="_blank">http://twitter.com/osgeoes</a><br>
<br></blockquote></div>
</blockquote></div></div></div>
<br>_______________________________________________<br>
Spanish mailing list<br>
<a href="http://lists.osgeo.org/mailman/listinfo/spanish" target="_blank">http://lists.osgeo.org/mailman/listinfo/spanish</a><br>
<a href="http://es.osgeo.org" target="_blank">http://es.osgeo.org</a><br>
<a href="http://twitter.com/osgeoes" target="_blank">http://twitter.com/osgeoes</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><font face="&#39;courier new&#39;, monospace">|----------------------------------------------------------------</font><div><font face="&#39;courier new&#39;, monospace">| Web Page: </font><a href="http://www.acuriousanimal.com" style="font-family:&#39;courier new&#39;,monospace" target="_blank">http://www.acuriousanimal.com</a></div>



<div><span style="font-family:&#39;courier new&#39;,monospace">| Blog: <a href="http://www.acuriousanimal.com/blog" target="_blank">http://www.acuriousanimal.com/blog</a></span><br><span style="font-family:&#39;courier new&#39;,monospace">| Twitter: <a href="http://twitter.com/#%21/acanimal" target="_blank">@acanimal</a></span><br>



<font face="&#39;courier new&#39;, monospace">|----------------------------------------------------------------</font><br><font face="&#39;courier new&#39;, monospace">| A crazy mix site: </font><a href="http://www.astracanada.net" style="font-family:&#39;courier new&#39;,monospace" target="_blank">http://www.astracanada.net</a><br>



<font face="&#39;courier new&#39;, monospace">| Old Virtual Globe project:</font><a href="http://theballoonproject.blogspot.com" style="font-family:&#39;courier new&#39;,monospace" target="_blank">http://theballoonproject.blogspot.com</a><br>



<font face="&#39;courier new&#39;, monospace">|----------------------------------------------------------------</font></div><div><font face="&#39;courier new&#39;, monospace"><div>|   _      __                           </div>



<div>|  /_)    (_ ` _   _  _)_ o  _   _   _  </div><div>| / /  o .__) (_( ) ) (_  ( (_( (_( (_) </div><div>|                                 _)    </div></font></div><div><font face="&#39;courier new&#39;, monospace"></font><span style="font-family:&#39;courier new&#39;,monospace">|----------------------------------------------------------------</span></div>



<br>
<br>_______________________________________________<br>
Barcelona mailing list<br>
<a href="mailto:Barcelona@lists.osgeo.org" target="_blank">Barcelona@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/barcelona" target="_blank">http://lists.osgeo.org/mailman/listinfo/barcelona</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
Barcelona mailing list<br>
<a href="mailto:Barcelona@lists.osgeo.org" target="_blank">Barcelona@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/barcelona" target="_blank">http://lists.osgeo.org/mailman/listinfo/barcelona</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><font face="&#39;courier new&#39;, monospace">|----------------------------------------------------------------</font><div><font face="&#39;courier new&#39;, monospace">| Web Page: </font><a href="http://www.acuriousanimal.com" style="font-family:&#39;courier new&#39;,monospace" target="_blank">http://www.acuriousanimal.com</a></div>

<div><span style="font-family:&#39;courier new&#39;,monospace">| Blog: <a href="http://www.acuriousanimal.com/blog" target="_blank">http://www.acuriousanimal.com/blog</a></span><br><span style="font-family:&#39;courier new&#39;,monospace">| Twitter: <a href="http://twitter.com/#%21/acanimal" target="_blank">@acanimal</a></span><br>

<font face="&#39;courier new&#39;, monospace">|----------------------------------------------------------------</font><br><font face="&#39;courier new&#39;, monospace">| A crazy mix site: </font><a href="http://www.astracanada.net" style="font-family:&#39;courier new&#39;,monospace" target="_blank">http://www.astracanada.net</a><br>

<font face="&#39;courier new&#39;, monospace">| Old Virtual Globe project:</font><a href="http://theballoonproject.blogspot.com" style="font-family:&#39;courier new&#39;,monospace" target="_blank">http://theballoonproject.blogspot.com</a><br>

<font face="&#39;courier new&#39;, monospace">|----------------------------------------------------------------</font></div><div><font face="&#39;courier new&#39;, monospace"><div>|   _      __                           </div>

<div>|  /_)    (_ ` _   _  _)_ o  _   _   _  </div><div>| / /  o .__) (_( ) ) (_  ( (_( (_( (_) </div><div>|                                 _)    </div></font></div><div><font face="&#39;courier new&#39;, monospace"></font><span style="font-family:&#39;courier new&#39;,monospace">|----------------------------------------------------------------</span></div>

<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><font face="&#39;courier new&#39;, monospace">|----------------------------------------------------------------</font><div><font face="&#39;courier new&#39;, monospace">| Web Page: </font><a href="http://www.acuriousanimal.com" style="font-family:&#39;courier new&#39;,monospace" target="_blank">http://www.acuriousanimal.com</a></div>
<div><span style="font-family:&#39;courier new&#39;,monospace">| Blog: <a href="http://www.acuriousanimal.com/blog" target="_blank">http://www.acuriousanimal.com/blog</a></span><br><span style="font-family:&#39;courier new&#39;,monospace">| Twitter: <a href="http://twitter.com/#%21/acanimal" target="_blank">@acanimal</a></span><br>
<font face="&#39;courier new&#39;, monospace">|----------------------------------------------------------------</font><br><font face="&#39;courier new&#39;, monospace">| A crazy mix site: </font><a href="http://www.astracanada.net" style="font-family:&#39;courier new&#39;,monospace" target="_blank">http://www.astracanada.net</a><br>
<font face="&#39;courier new&#39;, monospace">| Old Virtual Globe project:</font><a href="http://theballoonproject.blogspot.com" style="font-family:&#39;courier new&#39;,monospace" target="_blank">http://theballoonproject.blogspot.com</a><br>
<font face="&#39;courier new&#39;, monospace">|----------------------------------------------------------------</font></div><div><font face="&#39;courier new&#39;, monospace"><div>|   _      __                           </div>
<div>|  /_)    (_ ` _   _  _)_ o  _   _   _  </div><div>| / /  o .__) (_( ) ) (_  ( (_( (_( (_) </div><div>|                                 _)    </div></font></div><div><font face="&#39;courier new&#39;, monospace"></font><span style="font-family:&#39;courier new&#39;,monospace">|----------------------------------------------------------------</span></div>
<br>