Usage: pgkyl map [OPTIONS] MAPPING
Replace a block of ``data``'s grid axes with mapped coordinates.
Evaluates the mapping's DG coefficients at ``data``'s existing grid points (no
resolution parameter, no alignment arithmetic -- the mapped axes always keep the shape
of the axes they replace) and splices the result into a copy of ``data``'s grid.
Positional arguments:
MAPPING The coordinate-mapping field, as a filename or an already-loaded dataset.
Read from its native modal coefficients -- never interpolated. Its number of
dimensions (``m``) sets how many of ``data``'s axes are replaced.
Arguments:
MAPPING The coordinate-mapping field, as a filename or an already-loaded dataset.
Read from its native modal coefficients -- never interpolated. Its number of
dimensions (``m``) sets how many of ``data``'s axes are replaced.
Options:
-s, --space TEXT ``'conf'`` deforms the leading ``m`` axes (offset 0),
curvilinearly (every physical coordinate is evaluated over
all ``m`` mapped dimensions, so non-separable maps such as
rotations work); its component count must be ``m *
num_basis`` for an ``m``-D basis. ``'vel'`` deforms the
trailing ``m`` axes (offset ``data.num_dims - m``); Gkeyll's
velocity-space maps (``mapc2p_vel``) are diagonal -- each
dimension is evaluated by its *own* 1-D map, so the
component count must be ``m * num_basis`` for a *1-D* basis.
For a combined map, apply the verb twice. [default: conf]
-b, --basis_type TEXT ``mapping``'s ``basis_type`` (long name, e.g.
``"serendipity"``), set at the moment this call loads it --
only takes effect when ``mapping`` is given as a filename (a
property of already-loaded data can't be re-specified here).
Velocity-space mapping files (``mapc2p_vel``) commonly carry
no basis metadata at all, so this is typically required for
``space="vel"``.
-p, --poly_order INTEGER ``mapping``'s ``poly_order``, set the same way as
``basis_type``.
-i, --inplace [BOOLEAN] mutate and return ``data`` 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.