'''
def IndexToDeclRa(index):
theta,phi=hp.pixelfunc.pix2ang(NSIDE,index)
return -np.degrees(theta-pi/2.),np.degrees(pi*2.-phi)
def DeclRaToIndex(decl,RA):
return hp.pixelfunc.ang2pix(NSIDE,np.radians(-decl+90.),np.radians(360.-RA))
'''
'''
def IndexToDeclRa(index):
theta,phi=hp.pixelfunc.pix2ang(NSIDE,index)
return -np.degrees(theta-pi/2.),np.degrees(pi*2.-phi)
def DeclRaToIndex(decl,RA):
return hp.pixelfunc.ang2pix(NSIDE,np.radians(-decl+90.),np.radians(360.-RA))
'''
本文标题:healpy transfer ra,dec to pixel
本文链接:https://www.haomeiwen.com/subject/atpcnhtx.html
网友评论