stb-ipr¶
IPR Analyzer · menu code 2.15 · guide: 2.15 IPR Analyzer
usage: stb-ipr [-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] [--q Q] [--k-tol K_TOL] [-o OUTPUT_DIR]
[--save-gnuplot] [--view] [-v] [--no-intro]
Inverse Participation Ratio (IPR) scattered onto a 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 then <label>.selected.WFSX, with a note), and, unless --hsx-file/--geometry-file override it, auto-detects <label>.HSX (optional, upgrades weight accuracy) then <label>.fdf (geometry+basis fallback). Mutually exclusive with --file/--wfsx (not --hsx-file/--geometry-file -- see their own help).
--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 for physically correct overlap-weighted IPR. Falls back to --geometry-file / auto-detected .fdf with an accuracy warning if omitted. Optional (and common) together WITH --label too, since the real file is often not literally named <label>.HSX.
--geometry-file GEOMETRY_FILE
Optional explicit .fdf geometry path, used as the fallback parent when no .HSX is available. Requires sisl.
--shift {vbm,cbm,fermi,manual}
Reference energy shift, same vocabulary as stb-bands/stb-fatbands.
--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).
--q Q IPR order parameter (default: 2, the standard choice). Passed straight to sisl's EigenstateElectron.ipr(q=...), which requires q >= 2. Higher q emphasizes localization more strongly.
--k-tol K_TOL Cross-check tolerance (eV) between WFSX-stored eigenvalues and .bands eigenvalues at sampled k-points (default: 0.001). Same file-order sanity guard as stb-fatbands.
-o OUTPUT_DIR, --output-dir OUTPUT_DIR
Directory to write ipr.dat/ipr.gplot (with --save-gnuplot) and 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 ipr.dat (or ipr_up.dat/ipr_down.dat for a spin-polarized run) + ipr.gplot. Off by default -- this tool used to write both unconditionally on every run.
--view Show an interactive matplotlib preview before finishing. Off by default -- this tool previously always showed 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-ipr --label siesta --shift fermi
stb-ipr --label siesta --shift fermi --q 4
stb-ipr --label siesta --shift fermi --save-gnuplot --view