sample_spherical_surface

halotools.utils.sample_spherical_surface(N_points, seed=None)[source] [edit on github]

Randomly sample the sky.

Parameters:

N_points : int

number of points to sample.

seed : int, optional

Random number seed permitting deterministic behavior. Default is None for stochastic results.

Returns:

coords : list

(ra,dec) coordinate pairs in degrees.

Examples

>>> angular_coords_in_degrees = sample_spherical_surface(100, seed=43)