This archive contains answers to questions sent to Unidata support through mid-2025. Note that the archive is no longer being updated. We provide the archive for reference; many of the answers presented here remain technically correct, even if somewhat outdated. For the most up-to-date information on the use of NSF Unidata software and data services, please consult the Software Documentation first.
Howdy Jeff! OK, I don't know if this is a HDF5 bug or not, but I presume that it is. You can only detach dimension scales in reverse order from the order you attached them. This surprises me, but perhaps it's the behavior they intend. I have built in a test case in the h5_test directory (tst_h_dimscales4.c) which demonstrates the issue, and brought this to the attention of the HDF5 team. They will let me know if this is a bug or a feature. ;-) Meanwhile, I have changed my code to go through the list backwards when detaching dimension scales, and now your test case works. (This is with HDF5 1.8.6.) I have generated a snapshot release with this fix - if you could give it a try that would be great. Thanks, Ed Ticket Details =================== Ticket ID: WXP-996743 Department: Support netCDF Priority: Critical Status: Closed