[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[netCDF #FCO-860712]: Bug in hdf5open.c::get_quantize_info()



Hello,

Can you provide a little more information about the file you are working with 
that gives these errors, or how you are working with it?  The fix looks great, 
thank you very much! I'm interested in the use case that may be broken in the 
existing version, as it does not occur in any of our current tests.  

Thanks, have a great day,

-Ward  

> Dear netcdf support,
> 
> I get the following error messages with the current netCDF library 4.9.0:
> 
> ...
> #000: H5A.c line 545 in H5Aopen_by_name(): can't open attribute
> #001: H5VLcallback.c line 1128 in H5VL_attr_open(): attribute open failed
> #002: H5VLcallback.c line 1095 in H5VL__attr_open(): attribute open failed
> #003: H5VLnative_attr.c line 132 in H5VL__native_attr_open(): can't open 
> attribute
> #004: H5Aint.c line 559 in H5A__open_by_name(): unable to load attribute info 
> from object header
> #005: H5Oattribute.c line 508 in H5O__attr_open_by_name(): can't locate 
> attribute: '_QuantizeBitGroomNumberOfSignificantDigits'
> …
> #005: H5Oattribute.c line 508 in H5O__attr_open_by_name(): can't locate 
> attribute: ‚_QuantizeGranularBitRoundNumberOfSignificantDigits'
> ...
> #005: H5Oattribute.c line 508 in H5O__attr_open_by_name(): can't locate 
> attribute: '_QuantizeBitRoundNumberOfSignificantBits'
> 
> I think in routine hdf5open.c::get_quantize_info() the corresponding calls to 
> H5Aexists() are missing.
> I have added the following lines:
> 
> attr_exists = H5Aexists(datasetid, NC_QUANTIZE_BITGROOM_ATT_NAME);
> attr_exists = H5Aexists(datasetid, NC_QUANTIZE_GRANULARBR_ATT_NAME);
> attr_exists = H5Aexists(datasetid, NC_QUANTIZE_BITROUND_ATT_NAME);
> 
> With these calls I don't get any error messages anymore.
> I have attached the modified routine. I would be happy if the problem is 
> fixed in the next release.
> 
> Best regards,
> Uwe
> 
> 


Ticket Details
===================
Ticket ID: FCO-860712
Department: Support netCDF
Priority: Normal
Status: Closed
===================
NOTE: All email exchanges with Unidata User Support are recorded in the Unidata 
inquiry tracking system and then made publicly available through the web.  If 
you do not want to have your interactions made available in this way, you must 
let us know in each email you send to us.