Page 1 of 1

Cannot load certain grib files

Posted: 03 Apr 2012 18:44
by franz
Hi forum,

Using zyGrib 3.9.2 on Ubuntu oneiric 64bit I get the following error when trying to load a GRIB-file issued by the Croatian Hygrological Center (DHMZ) I get the following error in a popup window:
"File xyz.grb - Cannot open file - it's not a GRIB file or contains unrecognized data or ..."
The same file opens fine in other GRIB viewers and OpenCPN on Ubuntu.

The terminal shows the following information when trying to load the GRIB file:
====== GribRecord 1 : verticalDataAreMirrored()
idCenter=221 idModel=1 idGrid=255
dataType=33 levelType=105 levelValue=10
hour=0
sav xmin=14,525000 xmax=17,875000 ymin=44,374000 ymax=41,926000
final xmin=14,525000 xmax=17,875000 ymin=41,926000 ymax=44,374000
Ni=135 Nj=137
hasDiDj=1 Di,Dj=(0,025000 0,018000)
final Di,Dj=(0,025000 0,018000)
hasBMS=0 isScanIpositive=1 isScanJpositive=0 isAdjacentI=1
====== GribRecord 1 : translateDataType() : Unknown GribRecord
idCenter=221 idModel=1 idGrid=255
dataType=33 levelType=105 levelValue=10
hour=0
sav xmin=14,525000 xmax=17,875000 ymin=44,374000 ymax=41,926000
final xmin=14,525000 xmax=17,875000 ymin=41,926000 ymax=44,374000
Ni=135 Nj=137
hasDiDj=1 Di,Dj=(0,025000 0,018000)
final Di,Dj=(0,025000 0,018000)
hasBMS=0 isScanIpositive=1 isScanJpositive=0 isAdjacentI=1

... same information repeated for every record up to record 146, followed by:

DBG MblueReader.cpp: 36: openFile(): MblueReader::loadFile 'xyz.grb'
DBG Terrain.cpp: 563: loadMeteoDataFile(): ERROR: unknown file type

File is attached.
Any hints?

thx a lot,
franz

Re: Cannot load certain grib files

Posted: 05 Apr 2012 10:48
by DomH
franz wrote:Hi forum,

Using zyGrib 3.9.2 on Ubuntu oneiric 64bit ...

thx a lot,
franz
I suggest that you use a recent version that work well and is already deb packaged:

see : https://zygrib.org/forum/viewtopic.php?f=7&t=156

Re: Cannot load certain grib files

Posted: 10 Apr 2012 22:11
by jza
Hi,
It's a choice: zyGrib does not displays grib files when it does not knows the meteorological center,
because there are a lot of suspicious grib files on internet.
At this time, it does not knows Croatian Hygrological Center grib files.
If these data are freely distributed, I can probably do something to change it,
but I don't know how and where to retreive these files. It is a prerequisite.

Domh is right: zyGrib 3.9.2 is a very old version. There has been much improvement since.