cartesian_to_poincare_polar#
- gala.coordinates.cartesian_to_poincare_polar(w)[source]#
Convert an array of 6D Cartesian positions to Poincaré symplectic polar coordinates. These are similar to cylindrical coordinates.
- Parameters:
- warray_like
Input array of 6D Cartesian phase-space positions. Should have shape
(..., 6)where the last axis contains the phase-space coordinates in the order(x, y, z, vx, vy, vz).
- Returns:
- new_w
ndarray Points represented in 6D Poincaré polar coordinates with the same shape as the input array. The coordinates are ordered as
(R, p_phi, z, v_R, p_phi_dot, v_z).
- new_w