Skip to content

Instantly share code, notes, and snippets.

@zonca
Created July 13, 2011 17:59
Show Gist options
  • Save zonca/1080875 to your computer and use it in GitHub Desktop.
Save zonca/1080875 to your computer and use it in GitHub Desktop.
healpy vec2ang
import healpy
vec=np.array([[0, 0, 1], [1, 0, 0]])
theta, phi = healpy.vec2ang(vec)
#theta = array([ 0. , 1.57079633])
#phi = array([ 0., 0.])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment