harmonic_oscillator_xv_to_aa

gala.dynamics.harmonic_oscillator_xv_to_aa(w, potential)[source]

Transform the input cartesian position and velocity to action-angle coordinates for the Harmonic Oscillator potential.

This transformation is analytic and can be used as a “toy potential” in the Sanders & Binney (2014) formalism for computing action-angle coordinates in any potential.

Parameters
wgala.dynamics.PhaseSpacePosition, gala.dynamics.Orbit
potentialPotential
Returns
actionsQuantity

Actions computed from the input positions and velocities.

anglesQuantity

Angles computed from the input positions and velocities.

freqsQuantity

Frequencies computed from the input positions and velocities.