stb-fatbands¶
Fatbands Analyzer · menu code 2.10 · guide: 2.10 Fatbands Analyzer
usage: stb-fatbands [-h] [--label LABEL] [--file INPUT_FILE] [--wfsx WFSX]
[--hsx-file HSX_FILE] [--geometry-file GEOMETRY_FILE] --shift
{vbm,cbm,fermi,manual} [--manual-value MANUAL_VALUE]
[--gap-tol GAP_TOL] [--projection {l,ml,atom,species,species_l}]
[--category CATEGORY [CATEGORY ...]] [--k-tol K_TOL]
[-o OUTPUT_DIR] [--save-gnuplot] [--view] [-v] [--no-intro]
Orbital-projected (fatbands) band structure from .bands + .WFSX.
options:
-h, --help show this help message and exit
--label LABEL SIESTA output label. Shorthand for --file <label>.bands, auto-detects <label>.bands.WFSX (falling back to <label>.WFSX with a note), and auto-detects <label>.HSX (optional, upgrades weight accuracy) then <label>.fdf (geometry+basis fallback -- NOT <label>.XV, which has no per-orbital basis information). Mutually exclusive with --file/--wfsx/--hsx-file/--geometry-file.
--file INPUT_FILE Explicit path to the .bands file (alternative to --label).
--wfsx WFSX Explicit path to the .WFSX file. Required if --file is used instead of --label.
--hsx-file HSX_FILE Optional explicit .HSX path (Hamiltonian+overlap) for physically correct overlap-weighted norms. Falls back to --geometry-file / auto-detected .fdf with an accuracy warning if omitted.
--geometry-file GEOMETRY_FILE
Optional explicit .fdf geometry path (must have the basis's .ion/.ion.xml files alongside it), used as the fallback parent when no .HSX is available. A bare .XV has no per-orbital basis information and will fail the orbital-count check against the .WFSX -- use --hsx-file or a .fdf instead. Requires sisl.
--shift {vbm,cbm,fermi,manual}
Reference energy shift, same vocabulary as stb-bands:
- 'vbm' : Valence Band Maximum
- 'cbm' : Conduction Band Minimum
- 'fermi' : Fermi level
- 'manual' : Custom shift value (requires --manual-value).
--manual-value MANUAL_VALUE
Custom energy shift value (required if --shift manual is used).
--gap-tol GAP_TOL Energy tolerance in eV for VBM/CBM classification when --shift is vbm/cbm (default: 0.01). Same meaning as stb-bands.
--projection {l,ml,atom,species,species_l}
Category to color/size markers by (default: species_l):
l: aggregate by angular momentum (s, p, d, f)
ml: detailed orbital (s, px, py, pz, dxy, ...)
atom: per atom index
species: per chemical species
species_l: chemical species AND angular momentum combined
(e.g. 'Sn-s', 'Sn-p', 'O-s', 'O-p') -- shows which
orbital character within a species dominates a band,
which plain 'species' or plain 'l' cannot on their own
Single choice only -- unlike stb-dos's --type, the plot needs one weight per marker; run again for another projection.
--category CATEGORY [CATEGORY ...]
Restrict output to specific category values (e.g. --projection species --category O Sn, or --projection species_l --category Sn-s O-p). Default: all categories found.
--k-tol K_TOL Cross-check tolerance (eV) between WFSX-stored eigenvalues and .bands eigenvalues at sampled k-points (default: 0.001). This is a file-order sanity guard, not a physics tolerance like --gap-tol -- raising it only weakens the check that .bands/.WFSX truly correspond to the same calculation.
-o OUTPUT_DIR, --output-dir OUTPUT_DIR
Directory to write fatbands_<category>.dat/fatbands.gplot (with --save-gnuplot) into (the report and its references file go to the current folder) (default: current directory). Created if it doesn't exist.
--save-gnuplot Also write fatbands_<category>.dat (one file per category, k_position/energy(eV)/value columns) and fatbands.gplot together. Off by default -- this tool used to write both unconditionally on every run; that's no longer the case.
--view Show an interactive matplotlib preview of the fatbands plot before finishing. Off by default -- this tool used to always show it, with no way to skip.
-v, --version show program's version number and exit
--no-intro Do not show the introduction
Example usage:
stb-fatbands --label siesta --shift fermi --projection l
stb-fatbands --label siesta --shift fermi --projection species --category O Sn
stb-fatbands --label siesta --shift fermi --projection species_l
stb-fatbands --file siesta.bands --wfsx siesta.bands.WFSX --hsx-file siesta.HSX \
--shift fermi --save-gnuplot --view