sample_spherical_surface¶
- halotools.utils.sample_spherical_surface(N_points, seed=None)[source]¶
Randomly sample the sky.
- Parameters:
- N_pointsint
number of points to sample.
- seedint, optional
Random number seed permitting deterministic behavior. Default is None for stochastic results.
- Returns:
- coordslist
(ra,dec) coordinate pairs in degrees.
Examples
>>> angular_coords_in_degrees = sample_spherical_surface(100, seed=43)