Skip to content

Commit

Permalink
Add example
Browse files Browse the repository at this point in the history
  • Loading branch information
adl1995 committed Jun 6, 2017
1 parent 5de3e05 commit fa83213
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions hips/utils/healpix.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ def boundaries(nside: int, pix: int, nest: bool=False) -> tuple:
-------
theta, phi : float, array
Returns the angle (theta and phi) in radians
Examples
-------
nside = 8
pix = 450
theta, phi = boundaries(nside, pix, nest=True)
radec = SkyCoord(ra=phi, dec=np.pi/2 - theta, unit='radian', frame='icrs')
"""

boundary_coords = healpy.boundaries(nside, pix, nest=nest)
Expand Down

0 comments on commit fa83213

Please sign in to comment.