Skip to content

stb-spintexture

Spin Texture Analyzer · menu code 2.17 · guide: 2.17 Spin Texture Analyzer

usage: stb-spintexture [-h] [--label LABEL] [--wfsx WFSX] [--hsx-file HSX_FILE]
                       [--geometry-file GEOMETRY_FILE]
                       [--shift {vbm,cbm,fermi,manual,none}]
                       [--manual-value MANUAL_VALUE] [--fermi FERMI]
                       [--bands-file BANDS_FILE] [--fermi-file FERMI_FILE]
                       [--gap-tol GAP_TOL] [-o OUTPUT_DIR] [--save-gnuplot] [--view]
                       [-v] [--no-intro]

Spin texture (<Sx>,<Sy>,<Sz>) scattered onto a band structure, from a non-collinear/SOC SIESTA .WFSX.

options:
  -h, --help            show this help message and exit
  --label LABEL         SIESTA output label. Auto-detects <label>.WFSX, falling back to <label>.selected.WFSX then <label>.bands.WFSX, and, unless --hsx-file/--geometry-file override it, <label>.HSX (optional, upgrades accuracy) then <label>.fdf. Mutually exclusive with --wfsx (not --hsx-file/--geometry-file -- see their own help).
  --wfsx WFSX           Explicit path to the .WFSX file (alternative to --label).
  --hsx-file HSX_FILE   Optional explicit .HSX path for physically correct overlap-weighted spin moments. 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.
  --shift {vbm,cbm,fermi,manual,none}
                        Energy reference (default: none, i.e. raw eigenvalues as stored in the .WFSX).
  --manual-value MANUAL_VALUE
                        Custom shift value (eV), required if --shift manual.
  --fermi FERMI         Fermi energy (eV) for --shift fermi/vbm/cbm. Highest-priority source if given.
  --bands-file BANDS_FILE
                        Companion .bands file to read the Fermi energy from, for --shift fermi/vbm/cbm.
  --fermi-file FERMI_FILE
                        Explicit SIESTA .out log to read the Fermi energy from, for --shift fermi/vbm/cbm -- an alternative to --bands-file for a run with no saved .bands file. Not assumed to be named after --label.
  --gap-tol GAP_TOL     Energy tolerance in eV for VBM/CBM classification when --shift is vbm/cbm (default: 0.01).
  -o OUTPUT_DIR, --output-dir OUTPUT_DIR
                        Directory to write spintexture_S{x,y,z}.dat/.gplot (with --save-gnuplot) (the report and its references file go to the current folder) into (default: current directory). Created if it doesn't exist.
  --save-gnuplot        Also write spintexture_S{x,y,z}.dat + spintexture.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-spintexture --label siesta --shift fermi --fermi -4.2
  stb-spintexture --label siesta --shift fermi --fermi-file calc.out \
--save-gnuplot --view