pygrib icon indicating copy to clipboard operation
pygrib copied to clipboard

Same GRIB file, different content

Open bielim opened this issue 7 years ago • 2 comments

Hi,

I use pygrib to work with GRIB files provided by the Japanese 55-year Reanalysis (JRA-55). The following is a conundrum to me:

When I open one of these files (e.g., the file named 'anl_p125_relv.2006091518') on the remote server (Gentoo 2.4.1) where my files are stored, I get the following output:

import pygrib pygrib.version '2.0.1' grbs = pygrib.open('anl_p125_relv.2006091518') g = grbs[5] print g 5:Soil type difference:~ (instant):regular_ll:isobaricInhPa:level 7:fcst time 0 hrs:from 200609151800

However, the file is supposed to contain a variable called "relative vorticity", not "soil type difference." If I open the same file on my laptop (Ubuntu 16.04), I get the correct output:

import pygrib pygrib.version '2.0.1' grbs = pygrib.open('anl_p125_relv.2006091518') g = grbs[5] print g 5:Vorticity (relative):s**-1 (instant):regular_ll:isobaricInhPa:level 7:fcst time 0 hrs:from 200609151800

I verified that the MD5 checksums of the two files are identical.

Do you have an idea what might be causing the issue? Thanks a lot in advance, Melanie

bielim avatar Dec 10 '17 23:12 bielim

I suspect that different versions of the grib_api are linked, and contain different grib table info. Probably the Ubuntu system has a newer version, with a corrected grib table.

jswhit avatar Dec 11 '17 13:12 jswhit

Sorry for the late reply - your guess was correct, updating grib_api eventually fixed the problem! Thanks!

bielim avatar Dec 20 '17 21:12 bielim