Sign up ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

on this open FTP server ( you can find HIRLAM models from the Spanish meteorological service.

The documentation in the LEEME files (in spanish) says the data files are in GRIB-1 format. Unfortunally I'm unable to read it. I use differet programs, like QGIS, and commaind line tools: wgrid, grid_ls, etc without success.

Anyone can take a look and let me know how read it.

I'm new to grib and I dont understand about the codes and keys. The documentation at talks about IPAR, LTYP and LEV ids.

Also it contains some description about the parameters in the files:

Variable                   || Unidad  || IPAR || LTYP || LEV 
Temperatura a 2m                 K        011     105     2 
Componente x del viento a 10m   m/s       033     105     10 
Componente y del viento a 10m   m/s       034     105     10 
Precipitación total            kg/m2      061     105     0
Humedad relativa a 2m          kg/kg      052     105     2 

Can someone help me reading that data ?

=== UPDATED ===

I finally found the problem which was that I was downloading files in ASCII mode instead BINARY.

I can confirm the grib_api tool, once compiled and installed works perfectly. Example:

$ grib_ls 20120220000000_sfc_fc15
edition      centre       typeOfLevel  level        dataDate     stepRange    shortName    packingType  gridType     
1            lemm         heightAboveGround  2            20120220     15           2t           grid_second_order_SPD1  rotated_ll  
1            lemm         heightAboveGround  10           20120220     15           10u          grid_second_order_SPD1  rotated_ll  
1            lemm         heightAboveGround  10           20120220     15           10v          grid_second_order_SPD1  rotated_ll  
1            lemm         heightAboveGround  2            20120220     15           r            grid_second_order_SPD1  rotated_ll  
1            lemm         heightAboveGround  0            20120220     0-15         unknown      grid_second_order_SPD1  rotated_ll  
5 of 5 grib messages in 20120220000000_sfc_fc15

5 of 5 total grib messages in 1 files

On the other hand, I'm not able to make work gdalinfo with this GRIB files, but for the moment I don't require it.

share|improve this question

closed as off-topic by Paul, Fezter, BradHards, PolyGeo, whuber Apr 23 '14 at 13:17

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Paul, Fezter, BradHards, PolyGeo, whuber
If this question can be reworded to fit the rules in the help center, please edit the question.

Have you tried Ugrib? – Chad Cooper Feb 17 '12 at 20:55
not that tool. Please could you test to read one of the files on the server. – EricSonaron Feb 17 '12 at 20:58
I don't have Ugrib installed, but I know of colleagues who use it for GRIB data. Also, you have no active link to the data in your question. – Chad Cooper Feb 17 '12 at 21:01
updated question. Please make a test trying to read data. Thanks. – EricSonaron Feb 17 '12 at 21:13

2 Answers 2

Try As an alternative, saga gis also supports reading grib files so you can use that to convert to other file formats.

share|improve this answer
I also tested zygrib and doesn't works. – EricSonaron Feb 17 '12 at 21:14
I've tried to extract the info using several packages (degrib, Ugrib, zygrib) without success. Ugrib and degrib indicate that this is a GRIB1 file but something's missing to allow degribbing the file. I suspect a local table was used to encode the data. You may have to contact the HIRLAM folks to see what you might use to read it or find another source of the data that would allow one of the GRIB decoders to read it. – teknocreator Feb 17 '12 at 22:31

Under UNIX/ LINUX can use NCL (NCAR Command Language) to convert and taylor the grib and store it into netcdf. From here (if it is a plain scalar field) you can use GDAL or QGIS directly. Bye Huck

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.