diff options
Diffstat (limited to 'fg21sim/utils')
-rw-r--r-- | fg21sim/utils/random.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fg21sim/utils/random.py b/fg21sim/utils/random.py index d825101..6d835f8 100644 --- a/fg21sim/utils/random.py +++ b/fg21sim/utils/random.py @@ -34,6 +34,11 @@ def spherical_uniform(n=1): However, this convention is *different* to the convention generally used by mathematicians. + The following relation can be used to convert the generated (theta, phi) + to the Galactic longitude and latitude convention: + glon = np.rad2deg(phi) + glat = 90.0 - np.rad2deg(theta) + References ---------- .. [SpherePointPicking] |