Showing the structure of an HDF5 file (drive)

I just finished reading an early release of Doug Finke's upcoming
O'Reilly book 'Windows PowerShell for Developers'
( Windows PowerShell for Developers [Book] )
which I thoroughly enjoyed. In Chapter 9, 'Writing Little languages in
he has a section on GraphViz ( - drawing graphs
since before
you were born :wink: and how to write DOT files from PowerShell. Wouldn't it be
to have a cmdlet in PSH5X that creates a quick visual of an HDF5 drive?

vi Show-H5Drive.ps1 ... (Have a look at the source!)

The latest version of PSH5X includes the Show-H5Drive cmdlet which
conveys the idea. (Improve it for your own purpose!)
The attached PNG was created via

Show-H5Drive sample | & 'C:\Program Files (x86)\Graphviz 2.28\bin\dot.exe'
-Tpng -o sample.png

or SVG

Show-H5Drive h5 | & 'C:\Program Files (x86)\Graphviz 2.28\bin\dot.exe' -Tsvg
-o h5.svg

or ...

It shows the (multi-)graph structure of the sample file from the PSH5X
The edge labels are link names and the node labels are of the form:
{item type abbreviation}_{address in the HDF5 file}
For example, G_1293 is a group object at address 1293.
'sample.gv' shows the output generated by Show-H5Drive. Check it out for

Relevant links:

PSH5X website:

The movie:

The bits:


Best, G.

sample.gv (1.19 KB)