jcur2png.py -- slices of the 3D current density (<stem>.JCUR.vtk) as PNG
=======================================================================
Reads the legacy VTK file of --export-vtk jcur (and the atoms file
<stem>.JCUR_atoms.vtk next to it), interpolates the field on a plane and draws
it with arrows or streamlines, one panel per current field. numpy + matplotlib;
ParaView is NOT needed.

Usage
  python3 jcur2png.py STEM.JCUR.vtk [-o OUT.png] [--fields LIST] [--plane SPEC]
                      [--clip R] [--step S] [--arrows N | --stream] [--density D]
                      [--scalar NAME] [--vmax V] [--cmap NAME] [--dpi N]

  --fields   comma list of total, edlb, eddb, other, sel (= J_EDDB_sel of -a/-s),
             moset (= J_MOset of --nmr-mos / nmr-homo[N]); default: every field.
             A scoped run (-f/-p/-r/-h) names the parts J_EDDB_F (P, R, H) and
             J_rest; the aliases eddb / edlb resolve to them automatically
  --plane    fit,h   h Angstrom above the best-fit plane of the heavy atoms,
                     measured along the field axis of the run (default fit,1.0)
             x=V | y=V | z=V   a frame plane
  --clip R   show |u|, |v| <= R Angstrom about the plane centre
  --step S   resampling step of the slice (0.1 A); arrows every N nodes
             (--arrows 4 = every 0.4 A; 0 = none); --stream draws streamlines
             whose width follows |J| (--density 1.3)
  --scalar   background array instead of J_dia: ACID_total, ACID_EDDB, ...
             (sequential colours from 0; the ACID of Herges) or divJ_total,
             divJ_EDDB, ... (diverging colours, sources red, sinks blue); the
             array of each panel's own field is used when it exists
  --vmax V   caps the colour scale (symmetric for signed quantities)
  --background dia (default, the signed J_dia) | mag (|J| in grey, no reference centre,
             the sense from the arrows) | none (arrows only)
  --sign     global (default): J_dia about the plane centre; X,Y,Z: about that point; ring: about the NEAREST
             ring centre (5-7-membered rings found in the atoms file) - for multi-ring
             systems and macrocycles, where a local ring current about its own centre
             would otherwise be painted half red / half blue about the molecular centre

Examples
  runEDDB -i benzene.fchk --nics-rings 6 --export-vtk jcur -n 8
  python3 jcur2png.py benzene.JCUR.vtk                              # all fields, 1 A
  python3 jcur2png.py benzene.JCUR.vtk --fields total,eddb --stream  # streamlines
  python3 jcur2png.py benzene.JCUR.vtk --plane fit,0 --clip 3.5      # ring plane

  runEDDB -i benzene.fchk --nics-rings 6 -a --nmr-mos all,-homo --export-vtk jcur,acid,divj -n 8
  python3 jcur2png.py benzene.JCUR.vtk --fields total,sel,moset       # pi-NOBDs, MO set
  python3 jcur2png.py benzene.JCUR.vtk --scalar ACID_total --plane fit,0.5
  python3 jcur2png.py benzene.JCUR.vtk --scalar divJ_total --fields total,edlb,eddb

Reading the figure
  Background J_dia = -J.t about the plane centre: red = diatropic (clockwise
  viewed from the +n side of the field axis), blue = paratropic. Arrows show
  the in-plane vector; their length scales with |J| (nA T^-1 A^-2). The field
  axis of the run is printed in the title. The panels J_EDLB / J_EDDB / J_other
  add up to J_total point by point; J_MOset is the current of the chosen MOs.
  APPROXIMATE lanes are marked in the VTK header and in the title.
