pgkyl mom_rotations_perprotate

Usage: pgkyl mom_rotations_perprotate [OPTIONS]

  Component of ``array`` perpendicular to ``rotator``: ``u - (u . v_hat) v_hat``.

  Both fields are assumed to be three-component with components on the last axis.

Options:
  -a, --array TEXT         The three-component vector field to be rotated/projected;
                           must be NumPy-backed.  [required]
  -r, --rotator TEXT       The field defining the rotation direction; must be NumPy-
                           backed.  [required]
  -c, --coords TEXT        Half-open 'lo:hi' slice string selecting which ``rotator``
                           components form the direction vector. Defaults to '0:3'; use
                           '3:6' to rotate along the magnetic field of a six-component
                           EM field.  [default: 0:3]
  -i, --inplace [BOOLEAN]  mutate and return ``array`` instead of a new dataset.
                           [default: False]
  -t, --tag TEXT           optional tag for the returned dataset.
  -l, --label TEXT         optional label for the returned dataset.
  --help                   Show this message and exit.

Python API