uniform_around

skypy.position.uniform_around(centre, area, size)[source] [edit on github]

Uniform distribution of points around location.

Draws randomly distributed points from a circular region of the given area around the centre point.

Parameters:
centreSkyCoord

Centre of the sampling region.

areaQuantity

Area of the sampling region as a Quantity in units of solid angle.

sizeint

Number of points to draw.

Returns:
coordsSkyCoord

Randomly distributed points around the centre. The coordinates are returned in the same frame as the input.

Examples

See User Documentation.