cdo does not do what it is supposed to do
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cdo (Debian) |
Fix Released
|
Unknown
|
|||
cdo (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Precise |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
[IMPACT]
By default installed cdo lost data in grib1 files due to using grib_api instead of cgribex. Support for grub1 files in grib_api is experimental and unstable according to upstream:
https:/
The fix is to compile the package with the flag --enable-cgribex
[TESTCASE]
* Install cdo package $ sudo apt-get install cdo
* Download and test how it works with grib1 files
$ wget https:/
$ cdo sellonlatbox,
$ wget ftp://ftp.
$ gcc -o wgrib wgrib.c
$ ./wgrib -v tagliato_
1:0:D=197901010
The 'anl' word in the output means it has just lost the hour data
* Update package
* Rerun the test
$ ./wgrib -v tagliato_
Now instead of 'anl' it has '3hr'
[Regression Potential]
* There is a bug in Debian:
http://
Which introduced the bug to fix a behavior with grub2 files, however since grub2 files has nothing to do with cgribex it's unlikely to provoke it.
* It may fail if people try to use the program with non common grub1 files
https:/
[Other Info]
* The --enable-cgribex flag has been enabled in Debian since it provides a better default for general use
Related branches
- Daniel Holbach (community): Needs Information
- Ubuntu branches: Pending requested
-
Diff: 26 lines (+7/-1)2 files modifieddebian/changelog (+6/-0)
debian/rules (+1/-1)
Changed in cdo (Debian): | |
status: | Unknown → New |
description: | updated |
Changed in cdo (Debian): | |
status: | New → Fix Released |
no longer affects: | cdo (Ubuntu Quantal) |
Thank you for taking the time to report this bug and helping to make Ubuntu better. Please answer this question:
* What specific steps should we take to recreate this bug?
I've read both reports (this and the one you made in upstream) and still don't know what specific steps I need to do to recreate it, could you provide the so called 'GRIB 1 datafile'?
I've seen that you used:
$ cdo sellonlatbox, 23,31,- 25,-31 t2m_ei_1979.grb tagliato_ t2m_ei_ 1979.grb
To test cdo, could you provide both the wrong and right output?, or any other hint to detect that the program has run successfully?
The latest version in Ubuntu of the cdo program is 1.5.6.1+ dfsg.1- 2ubuntu2, and in other ubuntu releases:
cdo | 1.5.3.dfsg.1-2 precise 1-4build1 quantal dfsg.1- 2ubuntu2 raring
cdo | 1.5.4+dfsg.
cdo | 1.5.6.1+
So there is a good change that in the latest Ubuntu release it works as expected, if that's the case (we'll know when we can verify the error) we'll need to cherry pick the solution to add it to the Ubuntu precise version (SRU [0])
Again, thanks for your time invested in Ubuntu, have a nice day.
[0] https:/ /wiki.ubuntu. com/StableRelea seUpdates
--- wiki.ubuntu. com/BugSquad
Ubuntu Bug Squad volunteer triager
http://