I started using the C API and getId() from the C++ created items. That worked out well. I have written dimension scales to the file (confirmed with HDF Compass).
But, now I am trying to read them back in a general way. I don’t understand how H5DSIterate is supposed to work - though it seems like it should be that. All I really want is to get the id of the Dimension Scale dataset from the parent dataset, something like
dsid = H5Dget_datascale( did, indx )
is it possible to do this? Maybe I need to get that from the Data Space? I expect I could also just go to the DIMENSION_LIST attribute and get it from there. Alternately, I could explicitly add DIMENSION_LABELS, and use them as names of the variable which are the dimension scales, but, that seems a bit artificial.
Thanks for the help.