compute_actions¶
-
superfreq.
compute_actions
(freqs, table, max_int=12)[source]¶ Reconstruct approximations to the actions using Percival’s equation.
Approximate the values of the actions using a Fourier decomposition. You must pass in the frequencies and frequency table determined from and orbit in Cartesian coordinates.
For example, see: - Valluri & Merritt (1999) - Percival (1974)
Parameters: freqs : array_like
The fundamental frequencies.
table : structured array
The full table of frequency modes, amplitudes, and phases for all components detected in the FFT.
max_int : int (optional)
The integer vectors considered will go from
-max_int
tomax_int
in each dimension.Returns: actions :
numpy.ndarray
Numerical estimates of the orbital actions.