View Single Post
  #2  
Old 14-12-2018, 05:45 PM
kens (Ken)
Registered User

kens is offline
 
Join Date: Oct 2014
Location: Melbourne, Australia
Posts: 314
Declination is the arcsin of z
RA is the arctan of y/x.
Use atan2 or its equivalent to avoid div by zero error if x=0

EDIT: Looks like you need to add 180 degrees to get RA

Last edited by kens; 14-12-2018 at 10:41 PM.
Reply With Quote