[gdal-dev] GDAL processing of GRIB2 raster prints hundreds of unsuppressable warnings

Thomas Horner haevitetty at gmail.com
Fri Sep 7 08:31:41 PDT 2018


Hello,

I am processing some GRIB2 raster files from NCEP (weather model stuff). An
example file would be:
http://nomads.ncep.noaa.gov/pub/data/nccf/com/hiresw/prod/href.20180907/ensprod/href.t00z.conus.mean.f06.grib2

When I use various GDAL tools to process the file it prints this line for
each of the dozens of bands in the raster:

Warning: Master table version == 0, was experimental
I don't have a copy, and don't know where to get oneUse meta data at
your own risk

Ok, that warning is fine -- but it's a major problem when I process the
file with raster2pgsql as it dumps that message dozens of times into the
SQL, which causes an error when I attempt to load it into the db.
Using gdalwarp
-q or gdal_translate -q still prints the message hundreds of times despite
being in quiet mode which makes my log files nearly unreadable as I am
processing hundreds of these GRIB files.

The piece of GDAL code responsible for this is:
https://github.com/OSGeo/gdal/blob/master/gdal/frmts/grib/degrib/degrib/metaparse.cpp

I assume NOAA/NCEP will not be fixing their GRIB files any time soon (they
are a very understaffed federal agency) so what can I do on my end to
suppress these warnings?  Can this message be fixed or able to be
suppressed?

At best, this is annoying and slow -- at worst, it creates significantly
extra overhead in my processing chain to keep this from breaking my output
datasets.

thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20180907/f90df80f/attachment-0001.html>


More information about the gdal-dev mailing list