Skip to content

stb-sts

STS Spectroscopy Simulator · menu code 2.13 · guide: 2.13 STS Spectroscopy Simulator

usage: stb-sts [-h] [--label LABEL] [--wfsx WFSX] [--geometry-file GEOMETRY_FILE]
               (--point X Y Z | --xy X Y) [--height HEIGHT] [--axis {0,1,2}] --erange
               EMIN EMAX [--npoints NPOINTS] [--shift {none,fermi,manual}]
               [--fermi FERMI] [--bands-file BANDS_FILE] [--fermi-file FERMI_FILE]
               [--manual-value MANUAL_VALUE] (--sigma SIGMA | --fwhm FWHM)
               [-o OUTPUT_DIR] [--save-gnuplot] [--view] [-v] [--no-intro]

Simulated STS dI/dV(E) spectroscopy curve at a fixed tip point, from a full-BZ 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 --geometry-file overrides it, <label>.fdf (with its .ion/.ion.xml files alongside it). Mutually exclusive with --wfsx (not --geometry-file -- see its own help: the real fdf is very often NOT named <label>.fdf).
  --wfsx WFSX           Explicit path to the .WFSX file (alternative to --label).
  --geometry-file GEOMETRY_FILE
                        Explicit .fdf geometry path (must have the basis's .ion/.ion.xml files alongside it). Required if --wfsx is used instead of --label; optional (and common) together WITH --label too, since the real fdf is often not literally named <label>.fdf (e.g. SystemLabel 'siesta' with the actual input file called calc.fdf) -- --label still auto-detects the .WFSX in that case, only the geometry source changes.
  --point X Y Z         Absolute Cartesian tip position (Ang).
  --xy X Y              In-plane Cartesian position (Ang); needs --height too. stb-stm-style: the tip sits --height Ang above the topmost surface atom along the vacuum axis.
  --height HEIGHT       Height (Ang) above the topmost surface atom, for --xy mode.
  --axis {0,1,2}        Surface-normal axis for --xy mode. Auto-detected from the geometry's vacuum padding if omitted and exactly one vacuum axis is found.
  --erange EMIN EMAX    Energy window (eV), relative to --shift's reference.
  --npoints NPOINTS     Number of energy samples (default: 400).
  --shift {none,fermi,manual}
                        Energy reference (default: none, i.e. raw eigenvalues as stored in the .WFSX). No vbm/cbm option here -- see the module docstring.
  --fermi FERMI         Fermi energy (eV) for --shift fermi. Highest-priority source if given.
  --bands-file BANDS_FILE
                        Companion .bands file to read the Fermi energy from, for --shift fermi.
  --fermi-file FERMI_FILE
                        Explicit SIESTA .out log to read the Fermi energy from, for --shift fermi -- an alternative to --bands-file for a run with no saved .bands file. Not assumed to be named after --label.
  --manual-value MANUAL_VALUE
                        Custom shift value (eV), required if --shift manual.
  --sigma SIGMA         Gaussian broadening standard deviation, in meV.
  --fwhm FWHM           Gaussian broadening full width at half maximum, in meV.
  -o OUTPUT_DIR, --output-dir OUTPUT_DIR
                        Directory to write sts.dat (and, with --save-gnuplot, the .gplot script) 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 a real .gplot script alongside sts.dat. Off by default -- this tool used to write the .dat file unconditionally but never wrote a .gplot script at all.
  --view                Show an interactive matplotlib preview before finishing. Off by default (replaces the old --no-plot, which was on by default).
  -v, --version         show program's version number and exit
  --no-intro            Do not show the introduction

Example usage:
  stb-sts --label siesta --xy 0 0 --height 3.0 --erange -3 3 --sigma 50
  stb-sts --label siesta --point 1.2 0.7 12.0 --erange -5 5 --fwhm 100
  stb-sts --label siesta --xy 0 0 --height 3.0 --erange -5 5 --sigma 50 --shift fermi --fermi-file calc.out --save-gnuplot --view