Created
July 13, 2011 17:59
-
-
Save zonca/1080875 to your computer and use it in GitHub Desktop.
healpy vec2ang
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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