geometry.eq2gal

Rotate equatorial J2000 Cartesian coordinates to galactic.

Parameters

xyz : array-like, shape (…, 3)

Cartesian coordinates in the equatorial J2000 frame.

Returns

: np.ndarray, shape (…, 3)

Coordinates in the galactic frame.