Introduction
The cube file is a plain text format from the Gaussian quantum chemistry software. It
holds atom positions and volumetric data on a three-dimensional grid, such as orbital
or density values. Files use the extensions .cube and .cub.
The colour lookup table format that also uses
.cube is a different format.
Structure
A file starts with two comment lines. A line then gives the number of atoms and the origin of the grid, and three lines give the number of voxels and the step vector for each grid axis. One line follows for each atom, and then the grid values. A file can hold the data for more than one orbital.
Not described
This page is a first outline.
Known, not yet covered
- Reference: the units and sign conventions, the dataset identifier line and the order of the grid values.
- Viewer: the site has no viewer for this format.
Also used for
- Cube colour lookup table – Text colour lookup table, 1D or 3D, used for colour grading.
Links
Software
- Gaussian – quantum chemistry package that the format comes from
- Wolfram Language – imports and exports cube files
Reference
- Gaussian cube files – Paul Bourke’s description
- Gaussian CUBE file format – the h5cube project’s unofficial definition