<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.wiki.mohid.com/index.php?action=history&amp;feed=atom&amp;title=H5DUMP</id>
		<title>H5DUMP - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://www.wiki.mohid.com/index.php?action=history&amp;feed=atom&amp;title=H5DUMP"/>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=H5DUMP&amp;action=history"/>
		<updated>2026-04-05T01:29:49Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.28.0</generator>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=H5DUMP&amp;diff=303&amp;oldid=prev</id>
		<title>Guillaume: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=H5DUMP&amp;diff=303&amp;oldid=prev"/>
				<updated>2008-12-03T10:27:07Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 10:27, 3 December 2008&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;' lang='en'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Guillaume</name></author>	</entry>

	<entry>
		<id>http://www.wiki.mohid.com/index.php?title=H5DUMP&amp;diff=302&amp;oldid=prev</id>
		<title>192.168.20.177 at 12:18, 15 January 2008</title>
		<link rel="alternate" type="text/html" href="http://www.wiki.mohid.com/index.php?title=H5DUMP&amp;diff=302&amp;oldid=prev"/>
				<updated>2008-01-15T12:18:00Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[H5dump]] is a small tool that comes with the hdf5 libraries (windows or unix). It allows to dump in ASCII the content from hdf5 files.&lt;br /&gt;
&lt;br /&gt;
== Options ==&lt;br /&gt;
 &amp;gt; h5dump -h&lt;br /&gt;
&lt;br /&gt;
 usage: h5dump [OPTIONS] file&lt;br /&gt;
  OPTIONS&lt;br /&gt;
     -h, --help           Print a usage message and exit&lt;br /&gt;
     -n, --contents       Print a list of the file contents and exit&lt;br /&gt;
     -B, --bootblock      Print the content of the boot block&lt;br /&gt;
     -H, --header         Print the header only; no data is displayed&lt;br /&gt;
     -A                   Print the header and value of attributes; data of data&lt;br /&gt;
 sets is not displayed&lt;br /&gt;
     -i, --object-ids     Print the object ids&lt;br /&gt;
     -r, --string         Print 1-byte integer datasets as ASCII&lt;br /&gt;
     -e,                  Escape non printing characters&lt;br /&gt;
     -V, --version        Print version number and exit&lt;br /&gt;
     -a P, --attribute=P  Print the specified attribute&lt;br /&gt;
     -d P, --dataset=P    Print the specified dataset&lt;br /&gt;
     -y                   Do not print array indices with the data&lt;br /&gt;
     -p,   --properties   Print dataset filters, storage layout and fill value&lt;br /&gt;
     -f D, --filedriver=D Specify which driver to open the file with&lt;br /&gt;
     -g P, --group=P      Print the specified group and all members&lt;br /&gt;
     -l P, --soft-link=P  Print the value(s) of the specified soft link&lt;br /&gt;
     -o F, --output=F     Output raw data into file F&lt;br /&gt;
     -t P, --datatype=P   Print the specified named data type&lt;br /&gt;
     -w N, --width=N      Set the number of columns of output&lt;br /&gt;
     -x, --xml            Output in XML using Schema&lt;br /&gt;
     -u, --use-dtd        Output in XML using DTD&lt;br /&gt;
     -D U, --xml-dtd=U    Use the DTD or schema at U&lt;br /&gt;
     -X S, --xml-ns=S      (XML Schema) Use qualified names n the XML&lt;br /&gt;
                          &amp;quot;:&amp;quot;: no namespace, default: &amp;quot;hdf5:&amp;quot;&lt;br /&gt;
                          E.g., to dump a file called `-f', use h5dump -- -f&lt;br /&gt;
 &lt;br /&gt;
 Subsetting is available by using the following options with a dataset&lt;br /&gt;
 attribute. Subsetting is done by selecting a hyperslab from the data.&lt;br /&gt;
 Thus, the options mirror those for performing a hyperslab selection.&lt;br /&gt;
 The START and COUNT parameters are mandatory if you do subsetting.&lt;br /&gt;
 The STRIDE and BLOCK parameters are optional and will default to 1 in&lt;br /&gt;
 each dimension.&lt;br /&gt;
 &lt;br /&gt;
      -s L, --start=L     Offset of start of subsetting selection&lt;br /&gt;
      -S L, --stride=L    Hyperslab stride&lt;br /&gt;
      -c L, --count=L     Number of blocks to include in selection&lt;br /&gt;
      -k L, --block=L     Size of block in hyperslab&lt;br /&gt;
 &lt;br /&gt;
  D - is the file driver to use in opening the file. Acceptable values&lt;br /&gt;
        are &amp;quot;sec2&amp;quot;, &amp;quot;family&amp;quot;, &amp;quot;split&amp;quot;, &amp;quot;multi&amp;quot;, and &amp;quot;stream&amp;quot;. Without&lt;br /&gt;
        the file driver flag, the file will be opened with each driver in&lt;br /&gt;
        turn and in the order specified above until one driver succeeds&lt;br /&gt;
        in opening the file.&lt;br /&gt;
  F - is a filename.&lt;br /&gt;
  P - is the full path from the root group to the object.&lt;br /&gt;
  N - is an integer greater than 1.&lt;br /&gt;
  L - is a list of integers the number of which are equal to the&lt;br /&gt;
        number of dimensions in the dataspace being queried&lt;br /&gt;
  U - is a URI reference (as defined in [IETF RFC 2396],&lt;br /&gt;
        updated by [IETF RFC 2732])&lt;br /&gt;
 &lt;br /&gt;
  Examples:&lt;br /&gt;
 &lt;br /&gt;
  1) Attribute foo of the group /bar_none in file quux.h5&lt;br /&gt;
 &lt;br /&gt;
        h5dump -a /bar_none/foo quux.h5&lt;br /&gt;
 &lt;br /&gt;
  2) Selecting a subset from dataset /foo in file quux.h5&lt;br /&gt;
 &lt;br /&gt;
      h5dump -d /foo -s &amp;quot;0,1&amp;quot; -S &amp;quot;1,1&amp;quot; -c &amp;quot;2,3&amp;quot; -k &amp;quot;2,2&amp;quot; quux.h5&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
=== Extract metadata from any hdf5 dataset ===&lt;br /&gt;
In this example we show how to dump to ASCII any hdf5 dataset metadata&lt;br /&gt;
&lt;br /&gt;
 &amp;gt; h5dump -H testfile.hdf5&lt;br /&gt;
&lt;br /&gt;
 HDF5 &amp;quot;SST_20040414-20040606.hdf5&amp;quot; {&lt;br /&gt;
 GROUP &amp;quot;/&amp;quot; {&lt;br /&gt;
   GROUP &amp;quot;Grid&amp;quot; {&lt;br /&gt;
      ATTRIBUTE &amp;quot;Minimum&amp;quot; {&lt;br /&gt;
         DATATYPE  H5T_IEEE_F32LE&lt;br /&gt;
         DATASPACE  SCALAR&lt;br /&gt;
      }&lt;br /&gt;
      ATTRIBUTE &amp;quot;Maximum&amp;quot; {&lt;br /&gt;
         DATATYPE  H5T_IEEE_F32LE&lt;br /&gt;
         DATASPACE  SCALAR&lt;br /&gt;
      }&lt;br /&gt;
      DATASET &amp;quot;Bathymetry&amp;quot; {&lt;br /&gt;
         DATATYPE  H5T_IEEE_F32LE&lt;br /&gt;
         DATASPACE  SIMPLE { ( 157, 312 ) / ( 157, 312 ) }&lt;br /&gt;
         ATTRIBUTE &amp;quot;Minimum&amp;quot; {&lt;br /&gt;
            DATATYPE  H5T_IEEE_F32LE&lt;br /&gt;
            DATASPACE  SCALAR&lt;br /&gt;
         }&lt;br /&gt;
         ATTRIBUTE &amp;quot;Maximum&amp;quot; {&lt;br /&gt;
            DATATYPE  H5T_IEEE_F32LE&lt;br /&gt;
            DATASPACE  SCALAR&lt;br /&gt;
         }&lt;br /&gt;
         ATTRIBUTE &amp;quot;Units&amp;quot; {&lt;br /&gt;
            DATATYPE  H5T_STRING {&lt;br /&gt;
                  STRSIZE 1;&lt;br /&gt;
                  STRPAD H5T_STR_SPACEPAD;&lt;br /&gt;
                  CSET H5T_CSET_ASCII;&lt;br /&gt;
                  CTYPE H5T_C_S1;&lt;br /&gt;
               }&lt;br /&gt;
            DATASPACE  SCALAR&lt;br /&gt;
         }&lt;br /&gt;
 ...&lt;br /&gt;
&lt;br /&gt;
=== Extract ''Time'' from mohid hdf5 datasets ===&lt;br /&gt;
In this example we show how to use h5dump in order to extract the start time of any mohid hdf5 file. &lt;br /&gt;
The line below dumps the data and metadata associated with the first ''Time'' dataset occurence:&lt;br /&gt;
 &amp;gt; h5dump -d /Time/Time_00001 testfile.hdf5&lt;br /&gt;
&lt;br /&gt;
 HDF5 &amp;quot;SST_20040414-20040606.hdf5&amp;quot; {&lt;br /&gt;
 DATASET &amp;quot;/Time/Time_00001&amp;quot; {&lt;br /&gt;
   DATATYPE  H5T_IEEE_F32LE&lt;br /&gt;
   DATASPACE  SIMPLE { ( 6 ) / ( 6 ) }&lt;br /&gt;
   DATA {&lt;br /&gt;
   (0): 2004, 4, 14, 13, 20, 6&lt;br /&gt;
   }&lt;br /&gt;
   ATTRIBUTE &amp;quot;Minimum&amp;quot; {&lt;br /&gt;
      DATATYPE  H5T_IEEE_F32LE&lt;br /&gt;
      DATASPACE  SCALAR&lt;br /&gt;
      DATA {&lt;br /&gt;
      (0): 4&lt;br /&gt;
      }&lt;br /&gt;
   }&lt;br /&gt;
   ATTRIBUTE &amp;quot;Maximum&amp;quot; {&lt;br /&gt;
      DATATYPE  H5T_IEEE_F32LE&lt;br /&gt;
      DATASPACE  SCALAR&lt;br /&gt;
      DATA {&lt;br /&gt;
      (0): 2004&lt;br /&gt;
      }&lt;br /&gt;
   }&lt;br /&gt;
   ATTRIBUTE &amp;quot;Units&amp;quot; {&lt;br /&gt;
      DATATYPE  H5T_STRING {&lt;br /&gt;
            STRSIZE 19;&lt;br /&gt;
            STRPAD H5T_STR_SPACEPAD;&lt;br /&gt;
            CSET H5T_CSET_ASCII;&lt;br /&gt;
            CTYPE H5T_C_S1;&lt;br /&gt;
         }&lt;br /&gt;
      DATASPACE  SCALAR&lt;br /&gt;
      DATA {&lt;br /&gt;
      (0): &amp;quot;YYYY/MM/DD HH:MM:SS&amp;quot;&lt;br /&gt;
      }&lt;br /&gt;
   }&lt;br /&gt;
 }&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
Now, we can filter the lines we want with the [[grep]] command. The lines we want contain comma separated values. Hence we filter all but the lines with comma(s):&lt;br /&gt;
 &amp;gt; h5dump -d /Time/Time_00001 testfile.hdf5 | [[grep]] ,&lt;br /&gt;
&lt;br /&gt;
 File STDIN:&lt;br /&gt;
   (0): 2004, 4, 14, 13, 20, 6&lt;br /&gt;
&lt;br /&gt;
Now let's add some [[perl]] one-liners so we can present more conveniently the ''Time'' values:&lt;br /&gt;
 &amp;gt;h5dump -d /Time/Time_00001 %1 | grep , | perl -wlne&amp;quot;/(\d+, \d+, \d+, \d+, \d+, \d+)/;print$1&amp;quot; &lt;br /&gt;
 | perl -pe &amp;quot;s/,//g;&amp;quot; | perl -we&amp;quot;@x=&amp;lt;&amp;gt;;shift@x;$y=shift@x;print 'START    : '.$y&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 START    : 2004 4 14 13 20 6&lt;br /&gt;
&lt;br /&gt;
== External References ==&lt;br /&gt;
&lt;br /&gt;
*[http://www.hdfgroup.org/ Hdf5 homepage]&lt;br /&gt;
&lt;br /&gt;
[[Category:Technology]]&lt;br /&gt;
[[Category:Tools]]&lt;br /&gt;
[[Category:Hdf5]]&lt;/div&gt;</summary>
		<author><name>192.168.20.177</name></author>	</entry>

	</feed>
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
  ga('create', 'UA-56589921-5', 'auto');
  ga('send', 'pageview');
</script>