pgkyl fft

Usage: pgkyl fft [OPTIONS]

  Fourier transform (or power spectral density) of field-domain data.

  Wraps ``numerics.fft``: each component is transformed over the spatial axes (dummy
  axes of length <= 2 are squeezed out first). Supports 1D, 2D, and 3D data.
  ``numerics.fft`` reads its sample spacing straight off the grid array's own length, so
  a nodal (edge) grid -- one entry longer than the value count, the usual
  post-``.interpolate()`` shape -- is first collapsed to cell centers (matching values);
  a grid that already matches (e.g. a dynvector's) is passed through unchanged.

Options:
  -p, --psd [BOOLEAN]  when True, return the power spectral density ``|FT|^2`` over the
                       positive frequencies only.  [default: False]
  -i, --iso [BOOLEAN]  when True (only meaningful for 2D/3D data with ``psd=True``), bin
                       the PSD into a 1D isotropic spectrum over the polar wavenumber
                       magnitude.  [default: False]
  --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.

Python API