You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When opening specific netCDF files, it seems like some underlying warning reports about open objects are written to the stdout stream. This is a bit annoying, because it is impossible to suppress these messages.
There are 3 HDF5 objects open!
Report: open objects on 72057594037927936
Type = File(72057594037927936) name='/'Type = Attribute(504403158265495564) name='CLASS'Type = Attribute(504403158265495572) name='CLASS'
The weird thing is that the warnings do not appear when the file is being opened using a virtual filesystem (eg. /vsicurl, /vsisubfile, /vsicached), only when the file is directly accessed locally.
For what is worth, I don't replicate any "There are 3 HDF5 objects open!" message doing gdalinfo NETCDF:"c_gls_NDVI_200112210000_GLOBE_VGT_V2.2.1.nc":NDVI with libnetcdf & libhdf5 of Ubuntu 20.04 or 24.04
@sgillies What are the versions of those libs bundled by rasterio ?
What is the bug?
When opening specific netCDF files, it seems like some underlying warning reports about open objects are written to the stdout stream. This is a bit annoying, because it is impossible to suppress these messages.
The weird thing is that the warnings do not appear when the file is being opened using a virtual filesystem (eg.
/vsicurl
,/vsisubfile
,/vsicached
), only when the file is directly accessed locally.I noticed this when working with
rasterio
, initially I logged an issue there: rasterio/rasterio#3302The message is written from
libhdf5
: https://github.com/Unidata/netcdf-c/blob/2e30f8c43c54293db4ae8a544811e8d91f61ec4c/libhdf5/hdf5file.c#L344-L348Steps to reproduce the issue
Example file: https://globalland.vito.be/download/netcdf/ndvi/ndvi_1km_v2_10daily/2001/20011221/c_gls_NDVI_200112210000_GLOBE_VGT_V2.2.1.nc
Opening download file locally: ❌
Opening remote file with
/vsicurl
: 🆗Opening local file with
/vsisubfile
: 🆗Versions and provenance
GDAL 3.9.3 packaged with rasterio.
Additional context
No response
The text was updated successfully, but these errors were encountered: