simple problem

Â
Hi All
I am going through the HDF C libraries with view of using in my applications. If I want to read a generic HDF5 file, not knowing how many groups/datasets are there and their names, How I can go about. The 'hdfdump' is too exhaustive. What I require is sequence of steps for finding the above mentioned info.

Thanks
Prakash

Prakash,

There is a nice little utility from http://www.gdal.org/ called gdalinfo
which will give you the information you require.

See http://www.gdal.org/frmt_hdf5.html for information on how to use it with
example output.

The out of the box binary does NOT contain the HDF4 nor the HDF5 formats.
You will have to configure and build the source code to use the HDF
libraries.

John Huddleston, PhD, PE

···

_____

From: Surya Prakash [mailto:ds_prakash@rediffmail.com]
Sent: Monday, January 12, 2009 5:13 AM
To: hdf_forum
Subject: [hdf-forum] simple problem

Â
Hi All
I am going through the HDF C libraries with view of using in my
applications. If I want to read a generic HDF5 file, not knowing how many
groups/datasets are there and their names, How I can go about. The 'hdfdump'
is too exhaustive. What I require is sequence of steps for finding the above
mentioned info.

Thanks
Prakash

No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.10.6/1887 - Release Date: 1/11/2009
5:57 PM

Hi Prakash,

If you want to use one of the hdf5 tools, h5ls might work for you. It’s
output with no options is a list of top-level groups and dataset names, one
on each line. Each line will also contain the type of the object and its
dimensions if it is a dataset, so you may have to do some filtering. The –r
option will list all groups and datasets recursively. Run h5ls –help for a
usage message with a list of options.

Larry

···

From: Surya Prakash [mailto:ds_prakash@rediffmail.com]
Sent: Monday, January 12, 2009 6:13 AM
To: hdf_forum
Subject: [hdf-forum] simple problem

Â
Hi All
I am going through the HDF C libraries with view of using in my
applications. If I want to read a generic HDF5 file, not knowing how many
groups/datasets are there and their names, How I can go about. The 'hdfdump'
is too exhaustive. What I require is sequence of steps for finding the above
mentioned info.

Thanks
Prakash