Hello everyone,

I am writing a program in HDF4. In one of my files, I have a few datasets
that have the same name, although in different groups. Currently, I have
some highly abstracted functions I have written that ultimately call the
HDF4 function SDnametoindex(). An SD name is passed into my function which
is passed to SDnametoindex which will select the appropriate dataset. The
problem I have now is that there are now multiple datasets with the same
name, and SDnametoindex will only select the first one. I need the ability
to specify exactly which dataset I want. I was wondering if there was a way
to give an absolute path to the dataset which would then give me the
appropriate index. As I understand it, SDnametoindex does not allow for
absolute paths.

I could use SDnametoindicies() to keep track of which of the same-name
datasets I've already visited, but changing much of my function would
require rewriting large portions of my entire program and I want to avoid
that if there is a simpler solution. My function is easy to use in that all
the caller needs to provide is the name of the dataset, not any dataset or
group identifiers. I would like to keep such ease of use if possible.
Thanks.

Regards,
Landon Clipp
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to