[gdal-dev] Mute HDF5-DIAG diagnostic output
Christian Beilschmidt
christian.beilschmidt at geoengine.de
Tue Mar 4 00:05:15 PST 2025
<https://gis.stackexchange.com/posts/490841/timeline>
Dear GDAL devs,
I am using GDAL 3.8.4 and have some tests in a Rust codebase that check
behavior on trying to open non-existing NetCDF files, non-existing groups
within the NetCDF, etc.
I am working with the dataset by opening it as a multidimensional GDAL
dataset and then use GDALGroupOpenGroup, etc.
The testing works fine, but I am getting loads of diagnostic messages from
the underlying NetCDF library.
HDF5-DIAG: Error detected in HDF5 (1.10.10) thread 3:
#000: ../../../src/H5A.c line 484 in H5Aopen_by_name(): can't open attribute
major: Attribute
minor: Can't open object
#001: ../../../src/H5Aint.c line 542 in H5A__open_by_name(): unable
to load attribute info from object header
major: Attribute
minor: Unable to initialize object
#002: ../../../src/H5Oattribute.c line 496 in
H5O__attr_open_by_name(): can't locate attribute:
'_QuantizeGranularBitRoundNumberOfSignificantDigits'
major: Attribute
minor: Object not found
How can I mute these HDF5-DIAG messages?
I tried sending GDAL's error logging to /dev/null but this does not change
anything.
Best regards
Christian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20250304/908dcbba/attachment.htm>
More information about the gdal-dev
mailing list