<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://beta.vasp.at/wiki/index.php?action=history&amp;feed=atom&amp;title=Category%3AHDF5_support</id>
	<title>Category:HDF5 support - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://beta.vasp.at/wiki/index.php?action=history&amp;feed=atom&amp;title=Category%3AHDF5_support"/>
	<link rel="alternate" type="text/html" href="https://beta.vasp.at/wiki/index.php?title=Category:HDF5_support&amp;action=history"/>
	<updated>2026-04-24T02:17:15Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.8</generator>
	<entry>
		<id>https://beta.vasp.at/wiki/index.php?title=Category:HDF5_support&amp;diff=24675&amp;oldid=prev</id>
		<title>Schlipf at 10:09, 10 June 2024</title>
		<link rel="alternate" type="text/html" href="https://beta.vasp.at/wiki/index.php?title=Category:HDF5_support&amp;diff=24675&amp;oldid=prev"/>
		<updated>2024-06-10T10:09:44Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:09, 10 June 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l21&quot;&gt;Line 21:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 21:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As of VASP 6.2.0 we only support reading/writing of hdf5 files in serial mode.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;As of VASP 6.2.0 we only support reading/writing of hdf5 files in serial mode.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For extracting data from the {{FILE|vaspout.h5}} file we strongly recommend using the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[https://www.vasp.at/&lt;/del&gt;py4vasp&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/latest/ py4vasp] &lt;/del&gt;package.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For extracting data from the {{FILE|vaspout.h5}} file we strongly recommend using the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{&lt;/ins&gt;py4vasp&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;}} &lt;/ins&gt;package.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Command line tools ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Command line tools ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Schlipf</name></author>
	</entry>
	<entry>
		<id>https://beta.vasp.at/wiki/index.php?title=Category:HDF5_support&amp;diff=22550&amp;oldid=prev</id>
		<title>Miranda.henrique: Created page with &quot;Since VASP 6.2.0 we started supporting the feature of reading and writing hdf5 files. The HDF5 file format {{cite|hdf5format:web}} is a hierarchical data file designed to stor...&quot;</title>
		<link rel="alternate" type="text/html" href="https://beta.vasp.at/wiki/index.php?title=Category:HDF5_support&amp;diff=22550&amp;oldid=prev"/>
		<updated>2023-10-20T14:53:54Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Since VASP 6.2.0 we started supporting the feature of reading and writing hdf5 files. The HDF5 file format {{cite|hdf5format:web}} is a hierarchical data file designed to stor...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Since VASP 6.2.0 we started supporting the feature of reading and writing hdf5 files.&lt;br /&gt;
The HDF5 file format {{cite|hdf5format:web}} is a hierarchical data file designed to store large amounts of numeric data.&lt;br /&gt;
This file format combines the flexibility and hierarchy of an XML file with the speed and size economy of binary files.&lt;br /&gt;
The writing and reading of hdf5 files are handled by the HDF5 library which is written in C but wrappers for Fortran, python, and C++ are available.&lt;br /&gt;
&lt;br /&gt;
Currently, VASP accepts the following HDF5 files:&lt;br /&gt;
&lt;br /&gt;
:{|cellpadding=&amp;quot;5&amp;quot; cellspacing=&amp;quot;0&amp;quot; border=&amp;quot;1&amp;quot;&lt;br /&gt;
! style=&amp;quot;padding:5px; border-style: solid&amp;quot; | Filename || Usage&lt;br /&gt;
|-&lt;br /&gt;
|{{FILE|vaspin.h5}} || Contains the necessary inputs to start the calculation instead of {{FILE|INCAR}}, {{FILE|POSCAR}}, {{FILE|POTCAR}} and {{FILE|KPOINTS}}&lt;br /&gt;
|-&lt;br /&gt;
|{{FILE|vaspout.h5}} || Contains the outputs of the VASP calculation&lt;br /&gt;
|-&lt;br /&gt;
|{{FILE|vaspwave.h5}} || Contains the wavefunctions when {{TAG|LWAVEH5}}=.TRUE. and charge density {{TAG|LCHARGH5}}=.TRUE.&lt;br /&gt;
|-&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
To enable the reading and writing of these files, VASP should be compiled with HDF5 support active.&lt;br /&gt;
This is done by modifying the [[Makefile.include#HDF5_support_.28strongly_recommended.29|makefile.include]] accordingly.&lt;br /&gt;
&lt;br /&gt;
As of VASP 6.2.0 we only support reading/writing of hdf5 files in serial mode.&lt;br /&gt;
For extracting data from the {{FILE|vaspout.h5}} file we strongly recommend using the [https://www.vasp.at/py4vasp/latest/ py4vasp] package.&lt;br /&gt;
&lt;br /&gt;
== Command line tools ==&lt;br /&gt;
The HDF5 library ships with a series of command-line tools that can be used to quickly inspect the contents of any HDF5 file.&lt;br /&gt;
&lt;br /&gt;
In particular &amp;lt;tt&amp;gt;h5ls&amp;lt;/tt&amp;gt; outputs the hierarchy of groups and datasets. It is useful to check which data is present in the file.&lt;br /&gt;
For example:&lt;br /&gt;
&lt;br /&gt;
 $ h5ls vaspout.h5&lt;br /&gt;
 input                    Group&lt;br /&gt;
 intermediate             Group&lt;br /&gt;
 original                 Group&lt;br /&gt;
 results                  Group&lt;br /&gt;
 version                  Group&lt;br /&gt;
&lt;br /&gt;
Adding the &amp;lt;tt&amp;gt;-r&amp;lt;/tt&amp;gt; modifier lists the contents of the groups recursively, giving an overview of the data contained in the file.&lt;br /&gt;
&lt;br /&gt;
Another very useful tool is the &amp;lt;tt&amp;gt;h5dump&amp;lt;/tt&amp;gt; command that with the &amp;lt;tt&amp;gt;-d variable_name&amp;lt;/tt&amp;gt; argument outputs the contents of the variable to the screen.&lt;br /&gt;
For example:&lt;br /&gt;
 $ h5dump -d /intermediate/ion_dynamics/energies vaspout.h5&lt;br /&gt;
 HDF5 &amp;quot;vaspout.h5&amp;quot; {&lt;br /&gt;
 DATASET &amp;quot;/intermediate/ion_dynamics/energies&amp;quot; {&lt;br /&gt;
    DATATYPE  H5T_IEEE_F64LE&lt;br /&gt;
    DATASPACE  SIMPLE { ( 1, 3 ) / ( H5S_UNLIMITED, 3 ) }&lt;br /&gt;
    DATA {&lt;br /&gt;
    (0,0): -11.8515, -11.8515, -11.8515&lt;br /&gt;
    }&lt;br /&gt;
 }&lt;br /&gt;
 }&lt;br /&gt;
The meaning of each of the energy values can be printed by replacing &amp;lt;tt&amp;gt;energies&amp;lt;/tt&amp;gt; by &amp;lt;tt&amp;gt;energies_tags&amp;lt;/tt&amp;gt; in the command above.&lt;br /&gt;
For a complete list of HDF5 tools, the user is referred to the official HDF5 documentation {{cite|hdf5tools:web}}.&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:VASP]][[Category:Files]]&lt;/div&gt;</summary>
		<author><name>Miranda.henrique</name></author>
	</entry>
</feed>