Comment 4 for bug 1023329

Revision history for this message
Javier López (javier-lopez) wrote :

Hi Marco,

Thanks for the long and clear explanation, after reading it I was able to reproduce it in raring this way:

$ wget https://code.zmaw.de/attachments/3103/t2m_ei_1979.grb
$ sudo apt-get install cdo
$ cdo sellonlatbox,23,31,-25,-31 t2m_ei_1979.grb tagliato_t2m_ei_1979.grb
$ wget ftp://ftp.cpc.ncep.noaa.gov/wd51we/wgrib/wgrib.c
$ gcc -o wgrib wgrib.c
$ ./wgrib -v t2m_ei_1979.grb | head -n 8
1:0:D=1979010100:2T:sfc:kpds=167,1,0:anl:type=analysis:winds are N/S:"2 metre temperature [K]
...

With the 'anl' definition after kpds=167,1,0:

After recompiling with the --enable-cgribex option it behaves as expected, with the following output:

$ ./wgrib -v t2m_ei_1979.grb | head -n 8
1:0:D=1979010100:2T:sfc:kpds=167,1,0:3hr:type=analysis:winds are N/S:"2 metre temperature [K]

I looked into the changelog and cgribex was disabled in the first place for this report:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633934

So, I'd like to know if that error is still happening with this version, I've uploaded precise/quantal/raring patched cdo versions to my ppa so you can test them. Specifically the part that says 'Error (decodeIS) : GRIB version 2 unsupported!'

$ sudo add-apt-repository ppa:chilicuil/pmx
$ sudo apt-get update && sudo apt-get upgrade
$ rm tagliato_t2m_ei_1979.grb
$ cdo sellonlatbox,23,31,-25,-31 t2m_ei_1979.grb tagliato_t2m_ei_1979.grb
$ ./wgrib -v t2m_ei_1979.grb | head -n 8

I was able to test successfully the steps in the three ubuntu versions:

cdo - 1.5.6.1+dfsg.1-2ubuntu3 - raring
cdo - 1.5.4+dfsg.1-4build2 - quantal
cdo - 1.5.3.dfsg.1-2ubuntu1 - precise

If the patched version doesn't work with GRIB version 2 I suspect it may be difficult to be accepted in Ubuntu, probably GRIB2 will have preference over GRIB1

Have a nice day
---
Ubuntu Bug Squad volunteer triager
http://wiki.ubuntu.com/BugSquad