Volumetric data files
Read/write
Readers and writers for volumetric grid formats.
WannierIO.Xsf Type
Container for xsf structure and volumetric data.
struct Xsf{T<:Real}Fields
primvec: Primitive lattice vectors, each column is a primitive lattice vector in Åconvvec: Conventional lattice vectors, each column is a conventional lattice vector in Åatoms: Atomic labels or numbersatom_positions: Atomic positions in Cartesian coordinates in Åorigin: Grid origin in Cartesian coordinates in Åspan_vectors: Grid spanning vectors, each column is a spanning vector in ÅX: Fractional grid coordinates along first spanning vectorY: Fractional grid coordinates along second spanning vectorZ: Fractional grid coordinates along third spanning vectorW: Volumetric values, with shape (n_x, n_y, n_z)
WannierIO.read_xsf Method
read_xsf(io)Read xsf file.
Arguments
file: The name of the input file, or anIO.
Return
Xsfstruct containing the data in the file
Note
Only support reading 1 datagrid in BLOCK_DATAGRID_3D.
WannierIO.write_xsf Method
write_xsf(io, xsf)Write xsf file.
Arguments
file: The name of the output file, or anIO.xsf: aXsfstruct
Note
xsf.atoms must contain integer-parseable labels (atomic numbers). If atom labels are strings (e.g. "Si"), convert them to atomic numbers first.
WannierIO.Bxsf Type
Container for bxsf volumetric band-grid data.
struct Bxsf{T<:Real}Fields
fermi_energy: Fermi energy in eVorigin: Grid origin in reciprocal-space coordinates in Å⁻¹span_vectors: Spanning vectors, each column is a spanning vector in Å⁻¹X: Fractional grid coordinates along first spanning vectorY: Fractional grid coordinates along second spanning vectorZ: Fractional grid coordinates along third spanning vectorE: Band energies on the grid, in eV, with shape (n_bands, n_x, n_y, n_z)
WannierIO.read_bxsf Method
read_bxsf(io)Read bxsf file.
Arguments
file: The name of the input file, or anIO.
Return
Bxsfstruct containing the data in the file
WannierIO.write_bxsf Method
write_bxsf(io, bxsf)Write bxsf file.
Arguments
file: The name of the output file, or anIO.bxsf: aBxsfstruct
WannierIO.Cube Type
Container for cube volumetric data.
struct Cube{T<:Real}Fields
atom_positions: Atomic positions in Cartesian coordinates in Åatom_numbers: Atomic numbersorigin: Grid origin in Cartesian coordinates in Åvoxel_vectors: Voxel vectors, each column is a voxel vector in ÅX: Fractional grid coordinates along first voxel directionY: Fractional grid coordinates along second voxel directionZ: Fractional grid coordinates along third voxel directionW: Volumetric values, with shape (n_x, n_y, n_z)
WannierIO.read_cube Method
read_cube(io)Read cube file.
Arguments
file: The name of the input file, or anIO.
Note
By default, cube use Bohr unit, here all returns are in Cartesian coordinates, Å unit.
WannierIO.write_cube Method
write_cube(io, cube)Write cube file.
Arguments
file: The name of the output file, or anIO.cube: aCubestruct