Closed alaingdl closed 3 years ago
GRIB is a meteorological file format grib_api was a package created at ECMWF that later got superseded by eccodes - another package from ECMWF. The elements of the API that we use remained the same, though - which is why in CMake files we try to locate either of the libraries.
Noteworthy, GRIB support was added to GDL before it was added to IDL, and unfortunately the routine names and calling sequences differ between IDL and GDL as a result.
Same adventure as Alain on my size. As if some fundamental GRIB file was missing from the GRIB install. The change of names wrt IDL is too bad.
just a comment : what's new in IDL 8.8
The following 3rd party libraries have been added in this release: [...] ecCodes 2.15.0
The following 3rd party libraries have been removed in this release: [...] GRIB API
let us then just leave eccodes as the only option? GRIB-API is anyhow not to be used any more
here's a PR: https://github.com/gnudatalanguage/gdl/pull/1013
I've merged #1013, so I guess this can be closed (as GDL will no longer compile with GRIB_API, only ECCODES supported)
OK, I am totally lost on what is Grib and the link with Eccodes. I suspect something is wrong in the detection of Grib/Eccodes. @slayoo
Assuming not using
build_gdl.sh
I have a Debian with libgrib-api-dev but with NO eccodes libs/paquets It crashestest_grib.pro
with :I have another Debian without libgrib-api-dev installed but with all 3 paquets : libeccodes-data, libeccodes-dev, libeccodes0 installed. The
test_grib.pro
test does run perfectly.Both give :
What is really needed ? Maybe we need few cleanup in CMakeList & related files ?!
(furthermore we have a minuscule bug because
test_grib
should be run in testsuite/ directory (file not found if run outside)).