comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » No HDF5 info type functions?
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
No HDF5 info type functions? [message #44603] Tue, 05 July 2005 08:23
ellips is currently offline  ellips
Messages: 4
Registered: November 2003
Junior Member
I'm trying to find the names and numbers of HDF5 groups/datasets
in IDL. This was done for HDF 4 files with functions like
hdf_sd_fileinfo. I don't see any equivalent types of functions
for the HDF5 interface. It seems you need to know the group/dataset
names before you can access them. I want to be very general and
rely on the file contents to tell me what's in the file.

I'd like to query the HDF5 file for the number of top level groups,
loop through them to get their names and go on down the tree.
How do you get the name of the top level group?

Using H5_PARSE it seems there is a default top level group with
_NAME as the path/filename of the file. I can't open that named
group with H5G_OPEN or access it with H5G_GET_NMEMBERS.

All the examples I've seen seem to know the group names before
making the access calls. I suppose I can look at the H5_PARSE
or H5_BROWSER code but this must have been addressed by someone
already.

The IDL docs show many functions taking loc_id to be a file OR
group id.

Maybe the early HDF 4 IDL interface was this bad as well?

Thanks.
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: validating user input
Next Topic: Inverse 3D FFT

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 18:38:49 PDT 2025

Total time taken to generate the page: 0.00404 seconds