Convert Azi/Alt to Ra/Dec #129
-
The
I would really appreciate a nudge in the right direction. One reason for doing this is to calculate the RA/DEC of the observer's zenith at a given time, among other points of interest. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
I think you are very close. There is one thing I see so far. The refraction parameter to How different are the RA/DEC coordinates in |
Beta Was this translation helpful? Give feedback.
-
Oh, I think this is it: var spherical = {lat:horizon.azimuth,lon:horizon.altitude,dist:mercury.dist}; It looks like var spherical = new Astronomy.Spherical(horizon.altitude, horizon.azimuth, mercury.dist); |
Beta Was this translation helpful? Give feedback.
-
Doh! How did I get those reversed? I feel dumb now. |
Beta Was this translation helpful? Give feedback.
-
It took me a while to spot it also. I have to think about it every time I do that... "is azimuth a longitude or a latitude?" |
Beta Was this translation helpful? Give feedback.
Oh, I think this is it:
It looks like
lat
andlon
are backwards. Try this instead: