** Description changed:

- To the maintainers of the cdo package in ubuntu.
+ [IMPACT]
  
- Dear ubuntu cdo package maintainers, I already posted "question" about this 
same issue I'm reporting here, but it expired, so I'm posting again this same 
issue in here, hoping to have some response or at least some directions on how 
to behave to help and fix the problem. I found a mismatch between what cdo is 
supposed to do and what it actually does.
- I downloaded and installed the cdo package from the ubuntu official 
repositories (I'm using ubuntu 12.04). I wanted to use one of the cdo 
operators, sellonlatbox, on a weather forecast GRIB 1 datafile. The selection 
of the subdomain works fine, but however the resulting output file loses the 
information about the forecast lead time.
- At first I thought it was a problem of the cdo software itself, and I posted 
a support request, to state the possible presence of a bug in their software to 
the developers of the cdo. You can find my complete report here:
+ 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://code.zmaw.de/boards/1/topics/1171
+ https://code.zmaw.de/boards/1/topics/1540
  
- I went on with my investigation to what was showing me as a bug, a 
misfunctioning of the cdo software. I compared with a colleague of mines, who 
does not use nor ubuntu nor debian but fedora. In his system, everything was 
working correctly.
- So I tried to download from the CDO website
+ The fix is to compile the package with the flag --enable-cgribex
  
- https://code.zmaw.de/projects/cdo
+ [TESTCASE]
  
- the source code of version 1.5.3, which is the one available in the ubuntu 
repositories, and not working on my system.
- I compiled the cdo source package downloaded from the site with:
+  * Install cdo package $ sudo apt-get install cdo
+  * Download and test how it works with grib1 files
+    $ wget https://code.zmaw.de/attachments/3103/t2m_ei_1979.grb
+    $ 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 tagliato_t2m_ei_1979 | head -n 8
+ 1:0:D=1979010100:2T:sfc:kpds=167,1,0:anl:type=analysis:winds are N/S:"2 metre 
temperature [K]
  
- configure --with-netcdf=/usr --with-jasper=/usr --with-grib-api=/usr 
--with-proj=/usr
- make
- make install
+ The 'anl' word in the output means it has just lost the hour data
  
- This installation works good (and also much faster than the cdo software 
installed by the ubuntu software centre).
- For this compilation, I used the standard compilers available with ubuntu (I 
mean, I do not have any proprietary compiler on my computer, only the standard 
ubuntu tools). The libraries I used for linking are the ones already available 
in the ubuntu software centre, namely provided by the netcdf-dev package 
(1:4.1.1-6), the libjasper-dev (1.900.1-13), libgrib-api-dev (1.9.9-3) and 
libproj-dev (4.7.0-1).
- Please, let me know how the work will go on to solve the problem. I can 
provide more details to more specific questions, even if I tried to be as 
complete as possible in this report.
- One more note: in my post on the cdo forum I referenced above, I mentioned 
the wgrib utility. The wgrib utility I used is the one available within the 
grads package installed by the ubuntu software centre (version 2.0.a9-4).
+  * Update package
+  * Rerun the test
+   $ ./wgrib -v tagliato_t2m_ei_1979 | head -n 
81:0:D=1979010100:2T:sfc:kpds=167,1,0:3hr:type=analysis:winds are N/S:"2 metre 
temperature [K]
  
- Faithfully
- Marco Galli
+ Now instead of 'anl' it has '3hr'
+ 
+ [Regression Potential]
+ 
+  * There is a bug in Debian:
+ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633934
+ 
+ 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://code.zmaw.de/boards/1/topics/713#message-716
+ 
+ [Other Info]
+ 
+  * The --enable-cgribex flag has been enabled in Debian since it
+ provides a better default for general use
+ 
+ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=695009

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1023329

Title:
  cdo does not do what it is supposed to do

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cdo/+bug/1023329/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to