uniform_in_pixel

skypy.position.uniform_in_pixel(nside, ipix, size, nest=False)[source] [edit on github]

Uniform distribution of points over healpix pixel.

Draws randomly distributed points from the healpix pixel ipix for a map with a given nside parameter.

Parameters:
nsideint

Healpix map nside parameter.

ipixint

Healpix map pixel index.

sizeint

Number of points to draw.

nestbool, optional

If True assume NESTED pixel ordering, otherwise RING pixel ordering. Default is RING pixel ordering.

Returns:
coordsSkyCoord

Randomly distributed points over the healpix pixel.

Warning

This function requires the healpy package.

Examples

See User Documentation.