It depends from which celestial coordinates you are converting. I suppose you are working in equatorial coordinates. Then, you can convert as following:
tanA=sinhovercoshsinphio−tandeltacosphio
begincasescosasinA=cosdeltasinh cosacosA=cosdeltacoshsinphio−sindeltacosphioendcases
sina=sinphiosindelta+cosphiocosdeltacosh
Where A is azimuth, a altitude, alpha right ascension, delta declination, h hour angle and phi0 the observer's latitude.
Source: Wikipedia
No comments:
Post a Comment