magpie.randoms.randoms_usphere
- magpie.randoms.randoms_usphere(size[, phi_min=0., phi_max=2.*np.pi, theta_min=0., theta_max=np.pi])
Random points on the unit sphere or more generally across the surface of a sphere. The default will give randoms on the full unit sphere.
- Coordinate convention:
phi lies in the range [0, 2pi]
theta lies in the rang [0, pi].
- Parameters
- sizeint
Number of randoms to generate.
- phi_minfloat
Minimum longitude in radians.
- phi_maxfloat
Maximum longitude in radians.
- theta_minfloat
Minimum latitude in radians.
- theta_maxfloat
Maximum longitude in radians.
- Returns
- phiarray
Random phi.
- thetaarray
Random theta.