Note

You are not reading the stable version of Gammapy documentation.
Access the latest stable version v1.3 or the list of Gammapy releases.

galactic

gammapy.utils.coordinates.galactic(x, y, z, obs_pos=None)[source]

Compute galactic coordinates lon, lat and distance.

For given position in cartesian coordinates (kpc).