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
ipixfor a map with a givennsideparameter.- Parameters:
- nsideint
Healpix map
nsideparameter.- ipixint
Healpix map pixel index.
- sizeint
Number of points to draw.
- nestbool, optional
If True assume
NESTEDpixel ordering, otherwiseRINGpixel ordering. Default isRINGpixel ordering.
- Returns:
- coords
SkyCoord Randomly distributed points over the healpix pixel.
- coords
Warning
This function requires the
healpypackage.Examples
See User Documentation.