skymodel.sample_sphere_uniform¶
- skymodel.sample_sphere_uniform(n, mask=None, radec=True)¶
Draws uniformly sampled tuples of coordinates on the sphere. All-sky masks in the healpix format can be applied, in which case masked areas will be excluded.
- Parameters
- n: int
Number of data points to be drawn
- mask: float array, optional
All-sky healpix mask. If a mask is used data points will only be drawn in areas that are not masked. If mask is set to ‘advACT’, ‘SPT’, ‘Dust’, or ‘NVSS’, the respective survey masks will be used. Default: None
- radec: bool, optional
Determines the coordinate system of the output. If True, equatorial coordinates will be returned, i.e. RA, DEC (fk5). If False, galactic coordinates are returned. Default: True
- Returns
- phi, theta
longitude and latitude of sampled points in equatorial or galactic coordinate system