This is true if one is only interested in layout info without associating file names via command line. Also , in other way, user can write a quick script to display file name first and its h5ls output.
So I guess it's users choice.

Thanks for the reply!

Jonathan

On 5/2/2012 9:41 AM, Rhys Ulerich wrote:
You can use -H option with h5dump to display only header information without
data.

So for your example:
h5dump -H -d /S01/SBI/ C*h5

This gives you set of file name and dataset name along with the layout info,
so you can capture them to process as you want.
I'll doubly recommend 'h5ls' over 'h5dump -H' if you just want to
snarf dimensions from textual output.  Compare

[5006 rhys@setun Desktop][1]$ h5dump -H -d /bar_rho_u_u_u sample00000.h5
HDF5 "sample00000.h5" {
DATASET "/bar_rho_u_u_u" {
COMMENT "Mean quantity sample stored using row-major indices (B-spline
coefficient, tensor component, sample number) where the B-spline basis
is defined by /Ny, /breakpoints_y, and /knots"
    DATATYPE  H5T_IEEE_F64LE
    DATASPACE  SIMPLE { ( 1, 10, 96 ) / ( 1, 10, 96 ) }
}
}

to

[5009 rhys@setun Desktop]$ h5ls sample00000.h5  | grep bar_rho_u_u_u
bar_rho_u_u_u            Dataset {1, 10, 96}

where the latter is /much/ easier to parse from a shell script.

- Rhys

_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org



_______________________________________________
Hdf-forum is for HDF software users discussion.
Hdf-forum@hdfgroup.org
http://mail.hdfgroup.org/mailman/listinfo/hdf-forum_hdfgroup.org

Reply via email to